Loading the AngularJS Library and Your Main Module

Before you can implement an AngularJS application, you need to get the library loaded in an HTML template. The following lines in Listing 20.2 load the angular.js library and then load the first.js JavaScript custom module.

15     <script src="http://code.angularjs.org/1.2.9/angular.min.js"></script>
16     <script src="/js/first.js"></script>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.241.32