@rafaelmoura wrote:
I am using the Firebase and I have the followig code
getCustomers() { let array = []; this.service.getItems().subscribe(res => { for(let customer of res) { if(customer['salesman_id'] == this.salesman_id) { array.push(customer); console.log(array) } } this.customers = array }) }in my console I observable this situation
The loop repeat several times, how to resolve its ?
Posts: 1
Participants: 1
