Alles, was ich tun möchte, ist deaktivieren Eingabefeld "toDate" in meinem Formular, wenn der Benutzer wählt roeType als "Daily ROE" aus dem Dropdown. Wie dies zu erreichen ist Modell getrieben Formen von angular2.wie bedingte Formulare erstellen?
createAddROEForm() {
this.addRoeForm = this.formBuilder.group({
roeTypeId: [],
roeType: [],
roeSource: [],
supplierName: [],
fromDate: [],
toDate: [{value:'', disabled:(this.addRoeForm.value.roeType='Daily ROE')}],
status: [],
reason: [],
companyMarket: [],
productCategory: ['',Validators.required],
productSubType: ['',Validators.required],
productName: ['',Validators.required],
})