0
私は現在ドロップダウンのあるコンポーネントをいくつかのオプションを返しています。私は、オプション 'その他'が選択されたときにdivがの表示をとする機能を追加したいと思います。私は「その他」の場合の小切手の記入方法はわかりません。ドロップダウンオプションに基づいてdivを表示
<div class="p-2 col">
<select class="form-control w-100" type="checkbox" formControlName="paidToId">
<option *ngFor="let lookupItem of leHudItemInfo.availablePaidTos" [ngValue]="lookupItem.id">
{{lookupItem.name}}
//this returns the options, but how can I add a flag for only the string of "other"
</option>
</select>
</div>
<div class="showOther" ng-show="paidToOptions=='other'">
</div>
HTML::<div class="" ng-show="selection=='other'"> </div>
ありがとうございました!そしてangular2についてのコメントに感謝します:)私はまだそれに新しいです! – cdb