AngularJS: Alerts not showing up
Asked Answered
T

2

2

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?

Tolu answered 28/5, 2013 at 22:56 Comment(1)
Much Better Way - using Timeouts See #16824657Tolu
T
0

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

Tolu answered 29/5, 2013 at 21:20 Comment(0)
T
0

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

Tolu answered 28/5, 2013 at 23:21 Comment(2)
That is not a timeout parameter, it is a dependency on $timeout, which is provided by AngularJS.Gause
I see, do you see any way I can use timeouts?Tolu
T
0

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

Tolu answered 29/5, 2013 at 21:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.