Angular 5/6 Tutorial in Hindi Part 23: Create Custom Pipes in Angular 5 in Hindi Step by Step

4,465 views · Published 16 July 2018 · 17:14 · Indexed 6 November 2026

Channel: Thapa Technical · 2018 · Education

Watch on YouTube

Welcome all, We will see How to Create Custom Pipes in Angular 5 in Hindi. Angular Custom Pipe in Hindi Step by Step.  We can write our own custom pipe and that will be used in the same way as angular built-in pipes. To create a custom pipe, angular provides Pipe and PipeTransform interfaces. Every pipe is decorated with @Pipe where we define the name of our custom pipe. Every pipe will implement PipeTransform interface. This interface provides transform() method and we have to override it in our custom pipe class. transform() method will decide the input types, number of arguments and its types and output type of our custom pipe. We perform the following steps to create a custom pipe. 

Step 1: Create a typescript class. 
Step 2: Decorate the class using @Pipe. 
Step 3: Implement PipeTransform interface. 
Step 4: Override transform() method. 
Step 5: Configure the class in application module with @NgModule. 
Step 6: Ready to use our custom pipe anywhere in application. 

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Don't Forget to Follow  me on all Social Network, 
 
Instagram Link:     https://www.instagram.com/vinodthapa55
Facebook Link:     https://www.facebook.com/vinodthapa55
Twitter       Link:     https://twitter.com/vb55thapa
Facebook ThapaTechnical Page Link: https://www.facebook.com/vinodbahadur...

More from this channel