angular-strap : $injector:moduler using angular-strap?


 Problem : 

 

 

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.

Solution:

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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s