Use AsyncPipe When Possible

added by JavaScript Kicks
1/11/2019 8:04:11 AM

251 Views

I typically review a fair amount of Angular code at work. One thing I typically encourage is using plain Observables in an Angular Component, and using AsyncPipe (foo | async) from the template html to handle subscription, rather than directly subscribing to an observable in a component TS file.


0 comments