16 lines
710 B
HTML
16 lines
710 B
HTML
<div class="form-group col-md-12">
|
|
<label>Type of Combobox</label>
|
|
<select class="form-control" [(ngModel)]="type" (change)= "onchangeCombo($event)">
|
|
<option *ngFor="let option of options" [value]="option.value">{{option.value}}</option>
|
|
</select>
|
|
<div class="form-row" [ngSwitch]="type">
|
|
<div *ngSwitchCase="'autocomplete'">
|
|
<autocomplete-component [form]="form" [dataModel]="dataModel"></autocomplete-component>
|
|
</div>
|
|
</div>
|
|
<div class="form-row" [ngSwitch]="type">
|
|
<div *ngSwitchCase="'wordlist'">
|
|
<wordlist-component [form]="form" [dataModel]="dataModel"></wordlist-component>
|
|
</div>
|
|
</div>
|
|
</div> |