Answer» Templates typically use pipes to change content but it does not directly affect data. For example:
| Pipe | Details | Example |
|---|
| DatePipe | Locale-specific date formatting is performed. | {{ value_expr | date: 'long'}} | | UpperCasePipe | Given text is transformed into upper case text. | {{ 'InterviewBit'' | uppercase }} | | LowerCasePipe | Given text is transformed into lower case text. | {{ 'InterviewBit' | lowercase }} | | CurrencyPipe | Given number is transformed into a currency string. | {{ 4.4324 | currency:'USD' }} | | DecimalPipe | Given number is transformed into a decimal point string. | {{ 1.1334354654 | number }} | | PercentPipe | Given number is transformed into a percentage point string. | {{ 0.245 | percent }} |
ConclusionIn this document, we’ve covered the basics of Angular, its features and some of the important cheat sheets. Now, it’s time for you to head out and try what we’ve covered here and more. More than memorizing syntax, do pay attention to practising them and solving problems.
Additional Resources
- https://www.interviewbit.com/javascript-interview-questions/
- https://www.interviewbit.com/angular-interview-questions/
- https://www.interviewbit.com/angularjs-interview-questions/
- https://www.interviewbit.com/blog/angular-architecture/
- https://www.interviewbit.com/angular-8-interview-questions/
- https://www.interviewbit.com/angular-mcq/
|