AngularJS 依赖注入

今天刚接触angularjs,发现有些调用的方法找不到在哪里定义的,查了一下,是把接口注册成了服务调用的

html中ng开头的元素,都是angularjs的关键字,可以直接加载脚本

附一篇详细讲解注入的帖子

https://www.runoob.com/angularjs/angularjs-dependency-injection.html

原文地址:https://www.cnblogs.com/wangshaowei/p/11558119.html