AngularJS Directive to view book contents