Hi José, There are some cases where it is not needed, but in general, you need to unsubscribe. At least when you have written a 'subscribe' in your code. it's not needed when you use the async pipe. Also, if you are sure an observable will run to completion before your code gets destroyed. you don't need to unsubscribe.
The basic rule is: When in doubt, unsubscribe! Also, if you have no control over the observer (say it's coming from a service), unsubscribe. It may run to completion now, but a future refactor might change things. Regards Sander -- 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.
