mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
@ -1,4 +1,4 @@
|
|||||||
import {App, IonicApp, Animation, Modal, Platform, NavController, Page, Events} from 'ionic/ionic';
|
import {App, IonicApp, Animation, Modal, Platform, NavController, NavParams, Page, Events} from 'ionic/ionic';
|
||||||
import {forwardRef, NgFor} from 'angular2/angular2';
|
import {forwardRef, NgFor} from 'angular2/angular2';
|
||||||
import * as helpers from '../../helpers';
|
import * as helpers from '../../helpers';
|
||||||
|
|
||||||
@ -34,8 +34,10 @@ class ModalsContentPage {
|
|||||||
constructor(
|
constructor(
|
||||||
modal: Modal,
|
modal: Modal,
|
||||||
platform: Platform,
|
platform: Platform,
|
||||||
|
params: NavParams
|
||||||
) {
|
) {
|
||||||
this.modal = modal;
|
this.modal = modal;
|
||||||
|
this.params = params;
|
||||||
if (platform.is('android')) {
|
if (platform.is('android')) {
|
||||||
this.currentPlatform = 'android';
|
this.currentPlatform = 'android';
|
||||||
} else {
|
} else {
|
||||||
@ -74,8 +76,8 @@ class ModalsContentPage {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.character = characters[this.modal._defaults.charNum];
|
this.character = characters[this.params.get('charNum')];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
closeModal() {
|
closeModal() {
|
||||||
|
Reference in New Issue
Block a user