AngularJS: Alerts not showing up

╄→гoц情女王★ 提交于 2019-12-24 00:52:37

问题


I am using Angular Strap for Bootstrap components and trying to show up the alerts

Here is the plunker - http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview

It does not shows up the alerts, what is that I am missing?


回答1:


I have got the plunker working

http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview

The codebase says it can accept timeout parameter, but I do not know yet how to use it

https://github.com/mgcrea/angular-strap/blob/master/src/directives/alert.js#L5




回答2:


A better way I found is using directives

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



来源:https://stackoverflow.com/questions/16802846/angularjs-alerts-not-showing-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!