AngularJS: Alerts not showing up

2019-07-18 20:12发布

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?

2条回答
劫难
2楼-- · 2019-07-18 20:14

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

查看更多
对你真心纯属浪费
3楼-- · 2019-07-18 20:15

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

查看更多
登录 后发表回答