摘要: Angular does an excellent job of managing object dependencies. it can even take care of module dependencies.So we can easily group releated services ... 阅读全文
posted @ 2014-11-16 17:54 502280728 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 有以下5中方法注册一个AngularJS可以识别的Servicevalue和constant是两个极其简单的方法,只有少数情况下会使用。 service已经开始复杂了起来。而factory是我认为既简单又有足够灵活的度的方法。最后的provide是最复杂的方法,其他方法都是provide的特殊情况下... 阅读全文
posted @ 2014-11-16 17:53 502280728 阅读(409) 评论(0) 推荐(0) 编辑
摘要: I am still tired to translate these into Chinese.but who cares? i write these posts just for myselfViewafter a browser is done transforming the arkup'... 阅读全文
posted @ 2014-11-16 17:51 502280728 阅读(179) 评论(0) 推荐(0) 编辑
摘要: I am tired to translate these into Chinese.but who cares? i write these posts just for myselfScopea new scope is created by the ng-controller directiv... 阅读全文
posted @ 2014-11-16 17:49 502280728 阅读(138) 评论(0) 推荐(0) 编辑