<label for="bank_id">Bank</label>
<select class="browser-default custom-select custom-select-sx col-md-12 mb-auto" (change)="selectedBank($event)">
<option selected>Select Bank</option>
<option value="{{ bankData.id }}" *ngFor="let bankData of bankDetails; let i = index">
{{ bankData.country_name}}
</option>
</select>
I get the bank Id and set the Id in to selectdBank variable
selectedBank(event: any) {
this.seletedbank = event.target.value;
}
I want to show the bank details to that set id
<div *ngFor ="let bankData of bankDetails">
<div *ngif="bankData.id == seletedbank">
<h6 class="text-center font-weight-bold">
{{ bankData.country_name}} - Bank Details
</h6>
</div>
</div>
ngIf is not working. How do I get the data, that related to the seleted bank id.