2016-07-18 8 views
0

Ich stellte sicher $ scope ist vor $ http, aber ich bekomme immer noch diesen Fehler!

angular.module('management') 
    .service('Requests', function() { /* ... */ }) 
    .controller('RequestsOffWork', ['$scope', '$stateParams', '$location', 
            'Authentication', '$http', 'Requests', 
     function ($scope, $stateParams, $location, $http, Authentication, Requests) { 
.... 
} 

Antwort

4

Sie haben die Parameter außerhalb der Reihenfolge.

'$ scope', '$ stateParams', '$ location', 'Authentifizierung', '$ http', 'Anfragen'

$ scope, $ stateParams, $ Lage, $ http, Authentifizierung , Anfragen

Switch $http und Authentication in einem der beiden Spots.

Verwandte Themen