I keep getting this error:
`Error: [$ injector: nomod] Module 'ui.router' is not available! You either mistakenly wrote the name of the module, or forgot to load it.
But I'm sure everything is set up correctly
The project was created using Yeoman and uses Bower to manage dependencies, and Grunt is everything.
The yoman angular generator created a template with the base ngRouter, so I installed ui.router with
bower install angular-ui-router
Angular Version
1.2.16
Bower file
The above line updated the bower.json file with this line in the dependency list:
"angular-ui-router": "~0.2.10"
module setup application
I updated the app.js file by adding a dependency on ui.route (in addition to various other dependencies) angular.module ('app', ['ngRoute', ... 'ui.router'])
index.html
... <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
I have the above file in the above directory, I'm sure it is (I copied and pasted the path to avoid typos). I also tried the mini version without any differences.
EDIT
I am very, very new to all of this (angular, bower, yeoman, etc.). So I can very well do it all wrong, so maybe I no longer need to include the ui.router dependency? I mean, is it somehow integrated into the underlying angular infrastructure? Is ui.router outdated?
angularjs bower angular-ui-router yeoman
Cabbagesocks
source share