June 2014
Intermediate to advanced
696 pages
38h 52m
English
To implement AngularJS in your webpages, you need to bootstrap the HTML document. Bootstrapping involves two parts. The first part is to define the application module by using the ng-app directive, and the second is to load the angular.js library in a <script> tag.
The ng-app directive tells the AngularJS compiler to treat that element as the root of the compilation. The ng-app directive is typically loaded in the <html> tag to ensure that the entire webpage is included; however, you could add it to another container element, and only elements inside that container would be included in the AngularJS compilation and consequently in the AngularJS application functionality.
When possible, you should include ...
Read now
Unlock full access