Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't bind to 'ngFormModel' since it isn't a known native property, after update Angular2 rc3

After update to rc3, ngFormModel not working

my html:

<form [ngFormModel]="form">
    <select ngControl="syncTime" name="syncTime" [disabled]="!sync" class="form-   control">

    </select>
</form>

my .ts

constructor(private fb: FormBuilder) {
        this.form = this.fb.group({
            syncTime: this.syncTime
        });
like image 746
Emerceen Avatar asked Dec 19 '22 16:12

Emerceen


1 Answers

ngFormModel is replaced with formGroup in RC3.

Please refer https://docs.google.com/document/u/1/d/1RIezQqE4aEhBRmArIAS1mRIZtWFf6JxN_7B4meyWK0Y/pub

like image 178
Sam Avatar answered Jan 31 '23 02:01

Sam