mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(modal): note angular template syntax regarding inline templates
This commit is contained in:
committed by
Perry Govier
parent
6f4243255a
commit
eba588337c
6
js/angular/service/modal.js
vendored
6
js/angular/service/modal.js
vendored
@@ -11,10 +11,14 @@
|
||||
*
|
||||
* Put the content of the modal inside of an `<ion-modal-view>` element.
|
||||
*
|
||||
* Note: a modal will broadcast 'modal.shown', 'modal.hidden', and 'modal.removed' events from its originating
|
||||
* **Notes:**
|
||||
* - A modal will broadcast 'modal.shown', 'modal.hidden', and 'modal.removed' events from its originating
|
||||
* scope, passing in itself as an event argument. Both the modal.removed and modal.hidden events are
|
||||
* called when the modal is removed.
|
||||
*
|
||||
* - This example assumes your modal is in your main index file or another template file. If it is in its own
|
||||
* template file, remove the script tags and call it by file name.
|
||||
*
|
||||
* @usage
|
||||
* ```html
|
||||
* <script id="my-modal.html" type="text/ng-template">
|
||||
|
||||
Reference in New Issue
Block a user