<select class="form-control" [(ngModel)]="selected" id="department" name="department"
(ngModelChange)="onSelect(selected)">
<option value='' >Select Department</option>
<option *ngFor="let data of result" [value]="data.id" >
{{data.name}}
Please i want to filter table based on the data passed from the select oprion dropdown. Any help please.
This is the table i am using </ngx-datatable-column> -->
We can filter the array using the selected value.
I created a stackblitz for the scenario:
Stackblitz: https://stackblitz.com/edit/angular-ivy-qdboig
Let us know if it helps or if you have any more questions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.