import { Component , Input } from '@angular/core' ; import { AlertController , App , MenuController } from 'ionic-angular' ; import { AuthService } from './../../providers/auth.service' ; import { BaseComponent } from "../base.component" ; import { User } from './../../models/user.model' ; import { UserProfilePage } from './../../pages/user-profile/user-profile' ; @ Component ( { selector : 'user-menu' , templateUrl : 'user-menu.component.html' } ) export class UserMenuComponent extends BaseComponent { @ Input ( 'user' ) currentUser : User ; constructor ( public alertCtrl , public authService , public app , public menuCtrl ) { super ( alertCtrl , authService , app , menuCtrl ) ; } onProfile ( ) { this . navCtrl . push ( UserProfilePage ) ; } }