I have an Angular app which consumes data from a webapi. When i make a request then i get an typed observable.
now when i do this:
data: Product[]; produ
You should save the data in the HTTP Observable subscription:
productService.getByProductId("061000957").subscribe(res => { this.data = res; console.log(this.data) //you can see })