i'm doing a console.log in order to print a needed value.. i'm doing exactly this way
console.log(this.orderForm.get('addressId')?.value);
it's expected to be printed a single value, but that's not my case.. it has being printing the value so many times.. I need this value to search an address in an array, just like
this.addresses.find(x => x.id == this.orderForm.get('addressId')?.value);
but as I'm receiving it so many times, the find()/filter() method is breaking..
I guess it's something related to subscribe/unsubscribe, but haven't find anything about this on web..
ps: this method is in my html code just like
<span> getAddress() </span>