AngularJS启动过程分析
1111
app.controller('myCtrl',['$scope',function($scope){
$scope.wcrq=1234567890;
}]);
angular.bootstrap(document,['myApp']); 一定要在控制器后面启动,否则会报如下错误:
http://errors.angularjs.org/1.4.6/ng/areq?p0=myCtrl&p1=not a function, got undefined