ng progress
- angular.js included and executed
- angular module get created
- find
templates-dom:ng-*attributes (directives)- evaluating expression
- data-binding markup
- process templates
- compile & link
- transform templates
- renders to view

controller
- controller is js object which contain application logic.
- defined as part of angular module
- send/receive data between dom and application logic.
- usually attached to a dom element using
ng-controllerattribute (instantiated)
scope is a context.
When controller instantiate scope is created to glue module and template dom.
inspect ng-ctrl tag and type angular.element($0).scope()在控制台查看$scope内容
|
|
修改模型的数据12angular.element($0).scope().name = 'Nick'angular.element($0).scope().$digest()
scope nest
- inner scope shadow the outer same name member.
- inner scope .proto == outer scope

最外层的$rootScope(run只会在模型创建时执行)
|
|

data binding
3种绑定方式
- one way ng-bind
- two way ng-model
- three way
\{\{::scopemember}}


