Hi I am trying to use ngSwitch and ngSwitchWhen with my ionic 2 app. following is my imports. But it seems like I am not importing from the right source. I get the error
/node_modules/@angular/core/index"’ has no exported member ‘NgSwitchWhen’.
import {Component, NgSwitch, NgSwitchWhen, NgSwitchDefault} from '@angular/core';
import {apiCallService} from '../../providers/apiCallService';
import {Platform, NavController} from 'ionic-angular';
@Component({
templateUrl: 'build/pages/profile/profile.html',
providers : [apiCallService]
})
export class profileMain {
public name: string;
public loadStatus: string;
constructor(private apiCall : apiCallService, private platform : Platform) {
}
onPageWillEnter(){
this.apiCall.getProfile().subscribe(
data => {
this.name = data.json().display_name;
this.loadStatus = 'profileloaded';
},
err => console.log(err)
);
}
}