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是同一个对象。

AngularJS常用指令用法详解

posted @ 2015-06-29 11:02 李华丽 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-12-23
  • 2022-01-21
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2022-02-13
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-12-04
相关资源
相似解决方案