0
在AngularJS中自動解析依賴關係背後的魔力是什麼?AngularJS依賴注入原理
angular
.module('app', [])
.service('appService',
function appService (firstService, secondService, thirdService) { }
如何firstService,secondService,thirdService自動注入?
看看http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html – Whisher