DimaFr / angular-advanced-ex1

JB Angular Advanced Course Ex1
0 stars 0 forks source link

HostListener #3

Open ywarezk opened 4 years ago

ywarezk commented 4 years ago

https://github.com/DimaFr/angular-advanced-ex1/blob/046887da1992d0d186d8eff5f36747ee8dc9f4bf/projects/throttling/src/app/directives/tasks.directive.ts#L37

Yes this is another approach you can take and use just the subject and not the observable. don't forget to unsubscribe from the subject or you will have a memory leak.