调用AngularJS的API
摘要:
使用注入器的invoke()方法,可以直接调用一个用户自定义的函数体,并通过函数参数 注入所以来的对象:angular.injector(['ng']).invoke(function($http){ //do sth. with $http});也可以使用注入器的get()方法,获得指定名称... 阅读全文
posted @ 2015-04-13 17:43 wuye1200 阅读(293) 评论(0) 推荐(0) 编辑