Hi
I get the following warning when I open up an Alert - *ngSwitchWhen is deprecated and will be removed. Use ngSwitchCase instead
The issue is that as a result of this warning it seems none of the event listeners are working and I also cannot get the Alert to dismiss programmatically. If anyone could help that would be really awesome! Please find my code below:
indent preformatted text by 4 spaces`
openAlert() {
let prompt = Alert.create({
title: 'Test',
message: "Test",
inputs: [
{
name: 'name',
placeholder: 'Name'
},
],
enableBackdropDismiss:true,
buttons: [
{
text: 'Cancel',
handler: data => {
console.log('cancelled');
}
},
{
text: 'Continue',
handler: data => {
console.log('continue');
}
}
]
});
this._navController.present(prompt);
}
Here is some additional info
Your system information:
6.2.0
Ionic Framework Version: 2.0.0-beta.9
Ionic CLI Version: 2.0.0-beta.30
Ionic App Lib Version: 2.0.0-beta.16
Node Version: v4.4.5