Pierpaolo Croce
Pierpaolo Croce

Reputation: 57

AngularJS dependency error

enter image description here

I have my app organizad as in the image...I have a dependency problem when i m trying to inject $state in my app.config module as in the second image

enter image description here

i get the following error :

angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=app&p1=Error%3A%20%…frontend%2Fassets%2Fbower_components%2Fangular%2Fangular.min.js%3A20%3A449)

can someone tell me if i m wrong in the order of dependencies?

Upvotes: 0

Views: 242

Answers (1)

Dmitriy Nevzorov
Dmitriy Nevzorov

Reputation: 6078

You have to inject $stateProvider inside your config function, not $state itself.

Upvotes: 1

Related Questions