I'm trying to create a search filter to filter results by a certain category. So for instance, take an array of employees, I want to create a select box with each employees department selectable.
I've tried to find tutorials and such on this but despite being what I assume is not an uncommon question, I cannot seem to find any. Below is my current code, though very standard.
<select>
<option *ngFor="let employee of employees">
{{employee.Department}}
</option>
</select>
if i use ngFor in the standard way, I get a select box that renders with the following options:
HR HR HR Management Programming Programming
How do I operate my ngFor in such a way where options that exist already are not added, which is to say, change the select box to have only these options:
HR Management Programming