Property 'updateValue' does not exist on type 'FormControl'


#1

Hello, all! After migrate from ionic 2 beta 11 to rc0 I got error when I starts ionic serve

Property ‘updateValue’ does not exist on type ‘FormControl’

On beta 11 this code works fine. What’s wrong? Please help!

my code:
home.html

<ion-item><ion-input type="text" [formControl]="myCity"ion-input></ion-item>

home.ts

...
import {FormControl} from '@angular/forms';
...
export class HomePage {
  myCity: FormControl;
  constructor () {
    this.myCity = new FormControl();
  }
  updateVal () {
    this.myCity.updateValue('xxx');
  }
}

#2

Try with setValue.


#3

thanks! no error anymore. But now my app say me that ‘ion-pane’ is not a known element! No any info about ion-pane in changelog for rc0.


#4

Worked for me like charming.