码迷,mamicode.com
首页 > 其他好文 > 详细

angular第三天

时间:2016-10-14 07:33:06      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

1、$scope

  1.1 $scope.$apply()

  1.2 $scope.$watch()

2、angular.module

  2.1 angular,module.controller()

  2.2 angular.module.run():可以在省略控制器的情况下,配置一些全局变量到全局作用域下,run()只有全局作用域,没有局部作用域。

3、过滤器

  3.1 currency: {{ expression |  currency }} {{ expression | currency:"¥" }}

angular第三天

标签:

原文地址:http://www.cnblogs.com/gao-xiong/p/5958775.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!