sync pipe vs async pipe code example
Example: why async pipe should be used in angular
Async pipe automatically unsubscribes the observable thus saving some lines of code
Async pipe utilizes on push change detection strategy which is good for performance.