I m trying to add ui.bootstrap dependency to my angular project (I m using yeoman, bower). I did this :
- yo angular
- bower install angular-ui
- I then added to my index.html file : and
- grunt serve
Then I added the ui.bootstrap dependency to my app.js:
angular.module('angularuiprojectApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute', 'ui.bootstrap'])
When I m trying to access to my index.html on Chrome I m getting this error :
Uncaught Error: [$injector:modulerr] Failed to instantiate module angularuiprojectApp due to: Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap due to: Error: [$injector:nomod] Module 'ui.bootstrap' is not available! You either ......1)
I don't know where I m wrong, if someone can help me on this... Thanks.
index.html
? Has it perhaps been replaced by ill-configuredbower-install
? Do you get any404
errors in the browser? – Mikke