I started an AngularJS project to get a feel for it by starting with angular-seed.
I am trying to load up angular-bootstrap, but when I add the the module in my app.js file dependencies:
angular.module('myApp', [
'ngRoute',
'ui.utils',
'ui.bootstrap', //<------
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
])
I get the following error when I run my app:
[$injector:nomod] Module 'ui.bootstrap' is not available!
You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies as the second argument.
I have angular-bootstrap installed and the files are in my app/bower-components directory as:
├── angular-bootstrap
│ ├── bower.json
│ ├── ui-bootstrap.js
│ ├── ui-bootstrap.min.js
│ ├── ui-bootstrap-tpls.js
│ └── ui-bootstrap-tpls.min.js
As per the set up from the installation instructions, I have bootstrap.css and angular.js referenced in my index.html file.
I know there was another question that asked about this same error in Error: [$injector:nomod] Module 'ui.bootstrap' is not available! while Karma run in webstorm but that's for running Karma tests, I can't even get the module to load on just running the app.
ui-bootstrap.jsandui-bootstrap-tpls.js? tpls is the superset, it is ui-bootstrap.js plus templates.bower install angular-bootstrap