I need help with filtering out certain items from a list I am receiving from the backend before displaying them in the UI.
https://i.sstatic.net/D0hQm.png
Specifically, I do not want to show "Conference" and "Reception" in the UI. Here is the HTML code snippet:
<ng-container *ngFor="let space of space_name">
<div *ngIf="space">
<a class="dropdown-item text-light" [routerLink]="['/spaces']"
routerLinkActive="current"
[queryParams]="{space_name:space}" data-toggle="collapse"
data-target=".navbar-collapse.show"
style="background-color: #8d0528;">{{ space | uppercase }}</a>
</div>
</ng-container>
And here is the TypeScript code snippet:
this.sharedService.getDropdownspace().subscribe(data => {
this.spaceDropdown = data;
this.api_data = Object.values(this.spaceDropdown);
this.space_name = this.api_data[0];
})
Can you please suggest an approach for achieving this filtering requirement?