handleKeyUp(event: any): void {
this.technologiesService.retrieveData(event.target.value)
.subscribe(data => {
this.myResults = data;
});
}
The result of data
is:
https://i.sstatic.net/WjiD4.png
I want to assign data
as a property for later use. I've attempted this with this.myResults = data
, and declared myResults
at the beginning of my class as myResults = [];
.
This is how I am trying to utilize myResults
:
<mat-option *ngFor="let result of this.myResults | async" [value]="result.technology">
<span>{{ result.technology}}</span>
</mat-option>
However, I'm encountering the following errors:
ERROR Error: InvalidPipeArgument: '' for pipe 'AsyncPipe'
ERROR TypeError: Cannot read property 'dispose' of null
What mistake am I making?