filmov
tv
Angular Custom pipe | Angular 9 Tutorial - 2020 | Custom pipe with transform function in angular 9
![preview_player](https://i.ytimg.com/vi/6aN1ZQiSCMM/sddefault.jpg)
Показать описание
In this video we will try to learn the use of Custom Pipes in angular. We will be creating an angular application and apply the functionality of pipe in order to transform the values to the HTML view. We will be transforming the values of string, number and date. There are other ways also to transform the values in angular other than we demonstrated in the video. We will transform the value to the uppercase, lowercase, shortdate, short, shorttime, date etc. we can also do the transformation of data with the string operation splice, camel case, pascal case etc. JSON transformation of string also allowed in angular. We will be transforming the string, number, date values.
We will create a custom pipe in angular as NamePipe and transform the value if the name is black in the given string then it will print 'no name available' kind of message in place of name value. Also we will see the transform method of custom pipe. The first parameter will be the original value of string, second and remaining are optional parameter that we can send to the function in order to perform some functionality on transforming the value.
subscribe to learn:
We will create a custom pipe in angular as NamePipe and transform the value if the name is black in the given string then it will print 'no name available' kind of message in place of name value. Also we will see the transform method of custom pipe. The first parameter will be the original value of string, second and remaining are optional parameter that we can send to the function in order to perform some functionality on transforming the value.
subscribe to learn: