выбрали?
form: FormGroup = new FormGroup({
framework: new FormControl(''),
frameworkVer: new FormControl({value: '', disabled: 'true'})}
<fieldset class='form-group' >
<select formControlName='framework'>
<option *ngFor="let option of options" [ngValue]="option">{{option.name}}</option>
</select>
</fieldset>
<fieldset class='form-group'>
<select formControlName='frameworkVer'>
<option *ngFor="let version of versions" [ngValue]="version">{{version.name}}</option>
</select>
</fieldset>
this.form.value.framework.name
Обсуждают сегодня