July 2018
Intermediate to advanced
420 pages
8h 46m
English
Pipes in Angular are a simple way to filter and transform data, very similar to the old AngularJS filter. We have some default pipes in Angular (DatePipe, UpperCasePipe, LowerCasePipe, CurrencyPipe, and PercentPipe), and we can also create our own pipes.
To create a custom pipe, we can use the Angular CLI to generate the scaffolding for us. Let's see how it works:
ng g pipe pages/bikes/_pipes/bikeSearch
As always, Angular CLI takes care of creating the file and the appropriate imports.
transform(items: any, ...
Read now
Unlock full access