Pipes:
Pipes are used to format the data according to application requirement.We have two types of Pipes:
- Predefined Pipes
- Custom Pipes
- The pipes given by angular framework called as Predefined Pipes.
- The pipes developed by us based on application requirement called as custom pipe.
Predefined Pipes:
1) title-case: This pipe used to create the titles in angular application.
2) uppercase: This pipe used to convert the lowercase characters to uppercase characters.
3) lowercase: This pipe used to convert the uppercase characters to lowercase characters.
4) date: his pipe used to format the date according to application requirement.
5) currency: This pipe used to append the currency symbols to the numerical values.
6) json: This pipe used to convert the json objects to json strings.
7) number: This pipe used to format the numbers according to application requirement.
8) percent: This pipe used to convert the fractions to percentages.
9) async: This pipe used to append the values to the template asynchronously.
No comments:
Post a Comment