typescript IF_05_07_Modal_Home_TS
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript IF_05_07_Modal_Home_TS相关的知识,希望对你有一定的参考价值。
import { Component } from '@angular/core';
import { NavController, ModalController } from '@ionic/angular';
import { NavigationService } from '../navigation.service';
import { OfficePage } from '../office/office.page';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor(private navCtrl: NavController, private navigationService: NavigationService, private modalCtrl: ModalController) {
}
async gotoOfficePage() {
this.navigationService.setData({
"name": "Samarth Agarwal"
});
let modal = await this.modalCtrl.create({
component: OfficePage
});
modal.present();
}
}
以上是关于typescript IF_05_07_Modal_Home_TS的主要内容,如果未能解决你的问题,请参考以下文章
typescript IF_05_07_NavigationService_Home_TS
typescript IF_05_05_Office_GoBack_TS
typescript IF_06_05_home.page.ts_3
typescript IF_05_06_NavigationService_TS
typescript IF_04_07_Checkbox_Binding_HTML
typescript IF_05_13_Routing_Tabs.ts