AngularJS directive written in Typescript to view a book.