Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ion-tabs>
- <ion-tab [root]="usersPage" tabTitle="Users" tabIcon="people"></ion-tab>
- <ion-tab [root]="profilePage" [rootParams]="{id: currentUserId}"
- tabTitle="Profile" tabIcon="person"></ion-tab>
- </ion-tabs>
- export class TabsPage {
- usersPage: any = UsersPage;
- profilePage: any = ProfilePage;
- currentUserId:number;
- constructor(public identity: Identity) {
- identity.getCurrentUser().then(u => this.currentUserId = u.id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement