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

Commit

Permalink
fix(modal): close and dismiss bindings on component
Browse files Browse the repository at this point in the history
- Correctly bind close and dismiss handlers on component usage

Closes #6192
Fixes #6191
  • Loading branch information
navarroaxel authored and wesleycho committed Aug 21, 2016
1 parent ddcacb7 commit 3e8ecff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap', 'ui.bootstrap.p
content.attr({
resolve: '$resolve',
'modal-instance': '$uibModalInstance',
close: 'close($value)',
dismiss: 'dismiss($value)'
close: '$close($value)',
dismiss: '$dismiss($value)'
});
content = $compile(content)(modal.scope);
} else {
Expand Down

0 comments on commit 3e8ecff

Please sign in to comment.