filmov
tv
Angular pipes

Показать описание
Text version of the video
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
Slides
Angular 2 Tutorial playlist
Angular 2 Text articles and slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video we will discuss Pipes in Angular with examples.
Pipes in Angular
1. Transform data before display
2. Built in pipes include lowercase, uppercase, decimal, date, percent, currency etc
3. To apply a pipe on a bound property use the pipe character " | "
We can also chain pipes
Pass parameters to pipe using colon " : "
Custom pipes can be created
To read more about angular built-in pipes
Please note : If you get the following error, chances are that your date is not in mm/dd/yyyy format. To fix this error please change the date format to mm/dd/yyyy or create a custom pipe
InvalidPipeArgument: '14/10/1980' for pipe 'DatePipe'
Angular Pipe Examples:
uppercase pipe in this example converts employee code to uppercase
In this example, we have chained date and uppercase pipes.
In this example we are passing a single parameter to date pipe. With the parameter we specified we want the date format to be dd/mm/yyyy
For the list of date pipe parameter values please check the following article
In this example we are passing 3 parameters to the currency pipe
1. The first parameter is the currencyCode
2. The second parameter is boolean - True to display currency symbol, false to display currency code
3. The third parameter ('1.3-3') specifies the number of integer and fractional digits
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
Slides
Angular 2 Tutorial playlist
Angular 2 Text articles and slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video we will discuss Pipes in Angular with examples.
Pipes in Angular
1. Transform data before display
2. Built in pipes include lowercase, uppercase, decimal, date, percent, currency etc
3. To apply a pipe on a bound property use the pipe character " | "
We can also chain pipes
Pass parameters to pipe using colon " : "
Custom pipes can be created
To read more about angular built-in pipes
Please note : If you get the following error, chances are that your date is not in mm/dd/yyyy format. To fix this error please change the date format to mm/dd/yyyy or create a custom pipe
InvalidPipeArgument: '14/10/1980' for pipe 'DatePipe'
Angular Pipe Examples:
uppercase pipe in this example converts employee code to uppercase
In this example, we have chained date and uppercase pipes.
In this example we are passing a single parameter to date pipe. With the parameter we specified we want the date format to be dd/mm/yyyy
For the list of date pipe parameter values please check the following article
In this example we are passing 3 parameters to the currency pipe
1. The first parameter is the currencyCode
2. The second parameter is boolean - True to display currency symbol, false to display currency code
3. The third parameter ('1.3-3') specifies the number of integer and fractional digits
Комментарии