4
更新到RC3後,ngFormModel不工作不能綁定到 'ngFormModel',因爲它不是一個已知的原生屬性,更新Angular2 RC3後
我的html:
<form [ngFormModel]="form">
<select ngControl="syncTime" name="syncTime" [disabled]="!sync" class="form- control">
</select>
</form>
我的.ts
constructor(private fb: FormBuilder) {
this.form = this.fb.group({
syncTime: this.syncTime
});
是的,它被重新命名,但仍然存在於文檔中。 – serkan