-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(modal): Create a modal backdrop wrapper w/ internal modal direct…
…ive, closes #605
- Loading branch information
1 parent
dcbe378
commit 7d076bd
Showing
3 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(function() { | ||
'use strict'; | ||
|
||
angular.module('ionic.ui.modal', []) | ||
|
||
/* | ||
* We don't document the ionModal directive, we instead document | ||
* the $ionicModal service | ||
*/ | ||
.directive('ionModal', [function() { | ||
return { | ||
restrict: 'E', | ||
transclude: true, | ||
replace: true, | ||
template: '<div class="modal-backdrop">' + | ||
'<div class="modal-wrapper" ng-transclude></div>' + | ||
'</div>' | ||
}; | ||
}]); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters