Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Add an autoclose option in "Alert" #3277

Closed
apesme opened this issue Feb 10, 2015 · 1 comment
Closed

Add an autoclose option in "Alert" #3277

apesme opened this issue Feb 10, 2015 · 1 comment

Comments

@apesme
Copy link

apesme commented Feb 10, 2015

Is there a possibility to add an autoclose option in Alert ?
something like this :

<alert ng-repeat="alert in alerts" type="alert.type"  close="alert.close()" autoclose="10000">{{alert.msg}}</alert>

and in the directive, have something like this :

if (autoclose) {
$timeout(alert.close, autoclose);
}
@RobJacobs
Copy link
Contributor

@laac This pull request #2854 adds that feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants