angular2 pipes

Why use Angular 2 Pipes?

Sometimes, the data is not displays in the correct format on the template that time where using pipes.

You also can execute a function in the template to get its returned value.

Stayed Informed What is Pipes?

For example as,

This pipe is used built-in pipe for displays data in the correct format on templates.

For Built-in Pipe-
1.      DatePipe,
2.      UpperCasePipe,
3.      LowerCasePipe,
4.      CurrencyPipe,
5.      PercentPipe,
6.      JsonPipe,
7.      AsyncPipe,
8.      And so on..

For Custom Pipe-


If you want to display the bank card number on your account detail templates that how to displays this card number?  I think you should display the last four digits and rest of all digits will display as encrypted like (****-****-****_and your card numbers) that time you will need to create a custom pipe to achieve this.
I hope you are enjoying with this post! Please share with you friends. Thank you!!
ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book