1

I made sure $scope is before $http, but I'm still getting this error!

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

1 Answer 1

5

You have the parameters out of order.

'$scope', '$stateParams', '$location', 'Authentication', '$http', 'Requests'

$scope, $stateParams, $location, $http, Authentication, Requests

Switch $http and Authentication in one of the two spots.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.