我使用Angular Strap为引导部件,并试图显示警报AngularJS:警报显示不出来
这里是plunker - http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview
它不显示的快讯,那是什么,我失踪?
我使用Angular Strap为引导部件,并试图显示警报AngularJS:警报显示不出来
这里是plunker - http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview
它不显示的快讯,那是什么,我失踪?
我已经拿到了plunker工作
http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview
代码库说,它可以接受timeout
参数,但我还不知道如何使用它
https://github.com/mgcrea/angular-strap/blob/master/src/directives/alert.js#L5
这不是'timeout'参数,它是'$ timeout'的依赖关系,由[AngularJS]提供(http:/ /docs.angularjs.org/api/ng.$timeout)。 – rtcherry
我明白了,你有没有看到我可以使用超时的方法? – daydreamer
**更好的方法 - 用超时** 见http://stackoverflow.com/questions/16824157/ angularjs-directive-how-do-i-hide-the-alert-using-timeout – daydreamer