Understanding how pipes work under the hood by looking at their implementation details in Ivy

Photo by Samuel Sianipar on Unsplash


Explanation in details about how map and pluck work, and then figuring out main difference between two operators

Photo by delfi de la Rua on Unsplash

How map operator works


Photo by Sonja Langford on Unsplash

Turn on Angular Debug Tools


Using dependency injection to replace redundant logic code

Photo by Max Duzij on Unsplash
@Component({
...
})
export class SomeComponent implements OnInit {
constructor(
private route: ActivatedRoute
) {}
ngOnInit(): void {
this.route.params.pipe(
takeUntil(this.destroy$),
map(params => params.id),
filter(v => !!v), …



Pham Huu Hien

Angular Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store