docs(modal): passing in params

Related: https://github.com/driftyco/ionic2/issues/604
This commit is contained in:
Drew Rygh
2015-11-22 14:04:15 -06:00
parent 103551c056
commit 68ee8065c8

View File

@@ -11,6 +11,11 @@ import {extend} from 'ionic/util';
* similar to how NavController#push works, where you pass it a Page component,
* along with optional Page params, and options for presenting the modal.
*
*
* The `modal.open()` function can receive an object as the second argument that will be passed to the modal. For example, `modal.open(MyModal, {data: 7})` will open and pass a data object to `MyModal`.
* Inside of `MyModal`, this data can be accessed through the modal's `_defaults` property (eg: `this.modal._defaults`).
*
*
* @usage
* ```ts
* class MyApp {