1.

Pipes

Answer»

Templates typically use pipes to change content but it does not directly affect data. For example:

PipeDetailsExample
DatePipeLocale-specific date formatting is performed.{{ value_expr | date: 'long'}}
UpperCasePipeGiven text is transformed into upper case text.{{ 'InterviewBit'' | uppercase }}
LowerCasePipeGiven text is transformed into lower case text.{{ 'InterviewBit' | lowercase }}
CurrencyPipeGiven number is transformed into a currency string.{{ 4.4324 | currency:'USD' }}
DecimalPipeGiven number is transformed into a decimal point string.{{ 1.1334354654 | number }}
PercentPipeGiven number is transformed into a percentage point string.{{ 0.245 | percent }}
Conclusion

In 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/




Discussion

No Comment Found