Hello Guys,
I m trying to develop app with Ionic 2 with tabs page. Here is my code for the controller people.ts
import {Component} from '@angular/core';
import {HomePage} from '../home/home';
import {AboutPage} from '../about/about';
import {ContactPage} from '../contact/contact';
@Component({
templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {
private tab1Root: any;
private tab2Root: any;
private tab3Root: any;
constructor() {
// this tells the tabs component which Pages
// should be each tab's root Page
this.tab1Root = HomePage;
this.tab2Root = AboutPage;
this.tab3Root = ContactPage;
}
}
I m getting following typescript error.
TypeScript error: /Applications/apps/v2/MyApp/app/pages/people/people.ts(4,9): Error TS2395: Individual declarations in merged declaration 'PeoplePage' must be all exported or all local.
TypeScript error: /Applications/apps/v2/MyApp/app/pages/people/people.ts(9,14): Error TS2395: Individual declarations in merged declaration 'PeoplePage' must be all exported or all local.
I m new to Ionic2 and typescript so not sure what it does this above error means. Please suggest me how to fix it.
Thanks