AngularJS常用指令用法详解

ng-class

1》ng-init   ng-bind

11111

2》ng-class

111

3》ng-repeat

3.1-数据绑定

    ng-repeat可以绑定数组和JSON对象数据。从下图可以看出控制器的scope()函数得到的对象与controller('ctrlName',['$scope',function($scope){}])函数依赖注入的$scope是同一个对象。

image

posted @ 2015-06-29 11:02  李华丽  阅读(157)  评论(0编辑  收藏  举报
AmazingCounters.com