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

Commit 44e0642

Browse files
Avi Cherrywesleycho
Avi Cherry
authored andcommitted
feat(alert): pass $event to close()
Add ability to hook into `$event` in close callback Closes #3828 Fixes #3827
1 parent 36e0f0e commit 44e0642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: template/alert/alert.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="alert" ng-class="['alert-' + (type || 'warning'), closeable ? 'alert-dismissible' : null]" role="alert">
2-
<button ng-show="closeable" type="button" class="close" ng-click="close()">
2+
<button ng-show="closeable" type="button" class="close" ng-click="close($event)">
33
<span aria-hidden="true">&times;</span>
44
<span class="sr-only">Close</span>
55
</button>

0 commit comments

Comments
 (0)