的ReferenceError:$模式没有定义尝试添加一个angularjs模态窗口时 [英] ReferenceError: $modal is not defined when trying to add an angularjs modal window
本文介绍了的ReferenceError:$模式没有定义尝试添加一个angularjs模态窗口时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到当我试图实现这种 HTTP的错误://mgcrea.github .IO /角表带/#模式在我的应用程序。为什么会这样呢?也许我没有正确添加的东西吗?
解决方案
您似乎忘记申报依赖。结果
在GitHub上的文档你可以找到这样的:
注入$ strap.directives到应用模块
块引用>VAR应用= angular.module('angularjs起动器',['$ strap.directives']);
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?
解决方案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']);
这篇关于的ReferenceError:$模式没有定义尝试添加一个angularjs模态窗口时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文