var app=angular.module("myApp",[]);
app.controller("myController",['$scope','aService',...,function($scope,aService,...){
//可以注入你写的factory,provider等等
}]);
The first parameter of the controller is the name, followed by an array. The front of the array is the content to be injected, which can be n. The last parameter is a function. The number of parameters of the function must also be n. It must be the same as the content to be injected. One-to-one correspondence
Depending on how many parameters you inject, the general usage is as follows:
console.log(arguments) Take a look~
can be
n
,