[$injector:unpr] Unknown provider: $stateProvider <- $state <- LoginCtrl
problem :
missing angular-ui-router.js
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
steps :
1.
go the project folder and from commandline.
cmd : bower install angular-ui-router
ref : git
the above command will download package
2. start grunt server
cmd : grunt serve
problem :
missing angular-ui-router.js
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
steps :
1.
go the project folder and from commandline.
cmd : bower install angular-ui-router
ref : git
the above command will download package
2. start grunt server
cmd : grunt serve
Inject $stateProvider in your controller, where you are using it.
ReplyDelete