Thanks for the advice, pipes are very cool!
May I ask what happens technically when I subscribe several times? Is
subscription stored somehow inside Observable? Or it is disposed after call
is done?
loadItems(){
this.istService.getItems().subscribe((data: Item[]) => {
this.items= data;
console.log(this.items);
});
}
Thanks
On Thu, Sep 20, 2018 at 5:41 PM Sander Elias <[email protected]> wrote:
> Hi Tillias,
>
> Don't subscribe in your component, but use the async pipe. If you would
> have provided a stackBlit/plucker/... it would be easier to help you.
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.