using AngularJS directives to display study page