bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Add an autoclose option in "Alert"

Open apesme opened this issue 11 years ago • 1 comments

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);
}

apesme avatar Feb 10 '15 10:02 apesme

@laac This pull request https://github.com/angular-ui/bootstrap/pull/2854 adds that feature.

RobJacobs avatar Feb 10 '15 13:02 RobJacobs