$injector:modulerr using angular-strap?
Asked Answered
S

1

5

I am trying to get going with angular-strap directives, but encountering a module initialization error with the simplest setup. I have double checked a zillion times but can't see exactly what I might be missing.

Here is a plunker link: http://plnkr.co/edit/H1VrF63GeSQWLXHDVIW7

The error I get is:

Error: [$injector:modulerr] Failed to instantiate module mgcrea.ngStrap due to:
Error: [$injector:nomod] Module 'mgcrea.ngStrap' is not available! You either misspe...  <omitted>...1) 

I read this response, but it didn't answer my question as I am not using ngSanitize or routes. This is as simple as it gets.

Thanks

Scarify answered 11/3, 2014 at 19:7 Comment(2)
I think the problem lays in the old version of the angular-strap. You should include files specified at github.com/mgcrea/angular-strap#quick-startContemptible
Yea, thanks. Including all the scripts in the quick start works fine.Scarify
F
11

Your plunk needs angular-animate, which angular-strap depends on.

http://plnkr.co/hsqT3FLEjXwdnXrxn4hx

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular-animate.min.js"></script>
Fancier answered 12/3, 2014 at 3:46 Comment(2)
Actually silly developer (though thanks! ;-) ) of android strap not to write it on his gitup imho.Adjoining
I wish they would have included that in the list of dependent script files: mgcrea.github.io/angular-strapApospory

© 2022 - 2024 — McMap. All rights reserved.