2

我正在ionic2中制作电子商务应用程序。在使用标签页时,我遇到了运行时错误

未捕获(承诺):无效链接:TabsPage

选项卡.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) {

  }
}
4

0 回答 0