【发布时间】:2015-04-15 11:27:01
【问题描述】:
一直在尝试在我的 AngularJS 应用中使用 toastr:
app.module("MyApp", ['toastr']);
但是不行,找不到模块toastr!我以为 toastr 是一个 AngularJS 模块?
任何知道如何加载模块的人,或者是否有任何我可以使用的 Angular 指令?
【问题讨论】:
-
你确定模块已经加载了吗?
<script type="text/javascript" src="angular-toastr.tpls.js"></script> -
app的实例化是什么样的?从缺少代码很难看出你是如何实例化app。
标签: angularjs angularjs-directive toastr