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'); } }