mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Closes #1668. `<div class="modal">` will still work, but adding an `<ion-modal-view>` element to wrap a modal template is a more "Ionic Looking" way of doing the same thing.
10 lines
169 B
JavaScript
10 lines
169 B
JavaScript
IonicModule
|
|
.directive('ionModalView', function() {
|
|
return {
|
|
restrict: 'E',
|
|
compile: function(element, attr) {
|
|
element.addClass('modal');
|
|
}
|
|
};
|
|
});
|