AngularJS:警报未显示 [英] AngularJS: Alerts not showing up
本文介绍了AngularJS:警报未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将 Angular Strap 用于 Bootstrap 组件并尝试显示提醒
I am using Angular Strap for Bootstrap components and trying to show up the alerts
这是 plunker - http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview
Here is the plunker - http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview
它没有显示警报,我错过了什么?
It does not shows up the alerts, what is that I am missing?
推荐答案
我发现更好的方法是使用指令
A better way I found is using directives
可在此处找到 plunker - http://plnkr.co/edit/uqSB1gIz6XEmJfC8zHNb?p=预览
The plunker can be found here - http://plnkr.co/edit/uqSB1gIz6XEmJfC8zHNb?p=preview
我仍在尝试弄清楚如何添加超时和隐藏消息
I am still trying to figure out how to add timeout and hide the message
这篇关于AngularJS:警报未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文