2) Access Angular Model through controllers
3) $scope is Angular Model
4) ng-controller directive sets js function name to use as controller for a portion of page, different portions of the page could have diff controllers.
5) Setting ng-app="nameApp" prevents polluting of the global namespace:
6) Could have multiple Angular apps running on the same page.Angular.js Example First name:
Last name:
Hello {{firstName}} {{lastName}}
my thanks to:
https://github.com/curran/screencasts/tree/gh-pages/introToAngular
0 comments:
Post a Comment