我在ionic2中制作电子商务应用。使用标签页时我遇到了运行时错误
未捕获(承诺):无效链接:TabsPage
tabs.ts
import { Component } from '@angular/core';
import { NavController, IonicPage } from 'ionic-angular';
import { TranslateService } from '@ngx-translate/core';
import { HomePage } from '../home/home';
import { WishlistPage } from '../wishlist/wishlist';
import { AccountPage } from '../account/account';
@IonicPage({
name: 'TabsPage'
})
@Component({
selector: 'page-tabs',
templateUrl: 'tabs.html'
})
export class TabsPage {
tab1Root: any = HomePage;
tab2Root: any = WishlistPage;
tab3Root: any = AccountPage;
myIndex:number
tab1Title = " ";
tab2Title = " ";
tab3Title = " ";
constructor(public navCtrl: NavController, public translateService: TranslateService) {
}
}