Ionic 2 Alert Warning


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'
          buttons: [
              text: 'Cancel',
              handler: data => {
              text: 'Continue',
              handler: data => {

Here is some additional info

Your system information:
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

This is most likely due to your package.json pointing to rc2 of angular instead of rc1

In your package.json, change the ng portion to this.

    "@angular/common": "2.0.0-rc.1",
    "@angular/compiler": "2.0.0-rc.1",
    "@angular/core": "2.0.0-rc.1",
    "@angular/http": "2.0.0-rc.1",
    "@angular/platform-browser": "2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "2.0.0-rc.1",
    "@angular/router": "2.0.0-rc.1",

Then delete your node_modules, and run npm install again.

I can confirm that this did remove the warning. Many thanks to Justin for helping me out with this!