Answer the question
In order to leave comments, you need to log in
By what principle and in what order should services be passed as parameters when creating a controller?
Such a problem:
Here I am creating a controller like this
app.controller('ModalInstanceCtrl',
['$scope', '$http', '$timeout', '$uibModalInstance', 'uiGridConstants',
function ($scope, $http, $filter, $timeout, $uibModalInstance, $filter, uiGridConstants)
Answer the question
In order to leave comments, you need to log in
The ordinal number of the argument matters.
app.controller('ModalInstanceCtrl',
['$1', '$2', '$3', '$4', '5',
function ($1, $2, $3, $4, 5)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question