Skip to content

Instantly share code, notes, and snippets.

@lreiner
Created March 28, 2020 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lreiner/9a43734bc1770d5dca26c6de514db8e0 to your computer and use it in GitHub Desktop.
Save lreiner/9a43734bc1770d5dca26c6de514db8e0 to your computer and use it in GitHub Desktop.
Medium - Ionic 3 Tabs Tutorial tabs.ts
import { Component } from '@angular/core';
import { ProfilePage } from '../profile/profile';
import { ExplorePage } from '../explore/explore';
import { SearchPage } from '../search/search';
import { QuestionsPage } from '../questions/questions';
import { NotificationsPage } from '../notifications/notifications';
@Component({
selector: 'page-tabs',
templateUrl: 'tabs.html',
})
export class TabsPage {
tab1: any;
tab2: any;
tab3: any;
tab4: any;
tab5: any;
constructor() {
this.tab1 = ExplorePage;
this.tab2 = SearchPage;
this.tab3 = QuestionsPage;
this.tab4 = NotificationsPage;
this.tab5 = ProfilePage;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment