Bookviewer is an AngularJS directive to view a book. The directive and example code is written in Typescript.
Book consists of chapters. Chapters consists of paragraphs, where paragraphs can contain sub-paragraphs to any depth.
Content is always viewed on chapter level.
There is support to navigate within the book with links. There is support for an index view on chapters and their paragraphs.
See it running at http://svdoever.github.io/AngularJS-bookviewer