0
Well, I get a key array,:
addprd(a:string){
this.prdarray.push(a);
}
After adding the keys I want to use in the search I use the following medoto:
queryProd(as:string){
const prdN :Observable<any[]>= this.db.list(`/Produto/${as}`).valueChanges();
return prdN;
}
Thus returning an observable of this key,as I can make a "for" and store an array of results to display in my HTML?
you have already made a *ngFor in html to test if this is what you wanted?
– Bruno Miqueas
i need the result array to display,queryProd returns the query of a key,i need an array with the result of each key,then I will use *ngFor in html
– Kai