问题
I get that error when I'm trying to implement this http://mgcrea.github.io/angular-strap/#modal in my application. Why is it so? Maybe I haven't added something correctly?
回答1:
Looks like you forgot to declare dependency.
In their documentation on github you can find this:
Inject the $strap.directives into your app module
var app = angular.module('angularjs-starter', ['$strap.directives']);
来源:https://stackoverflow.com/questions/18783974/referenceerror-modal-is-not-defined-when-trying-to-add-an-angularjs-modal-wind