问题
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