Posts

Showing posts from December, 2021

Angular | Create Custom Pipes

                   Angular  | Create Custom Pipes   Our applications may have a lot of data for presentation, But for creating a good user experience it is preferable to see in a more understandable format like March 12, 2010 is better to read then Mon Mar 12 2010 15:23:40 GMT-0700 (Pacific Daylight Time). This Angular post is compatible with Angular 4 upto latest versions, Angular 7, Angular 8, Angular 9, Angular 10, Angular 11 & Angular 12 For such small and repeated tasks of transforming values in other formats we used to use Filters in AngularJS version 1, But after Angular 2 we have pipes which serve similar tasks and once defined can be used anywhere in the application. We will discuss more Pipes using Angular’s latest stable version 7. How to Create Simple Custom Pipes? First, create a new Angular application by running following in CMD Prompt using Angular CLI. Install NodeJS then Angular CLI as follows $ npm instal...