1. Question:What are Filters in AngularJS? 

    Answer
    Filters are used to format data before displaying it to the user. They can be used in view templates, controllers, services and directives. There are some built-in filters provided by AngularJS like as Currency, Date, Number, OrderBy, Lowercase, Uppercase etc. You can also create your own filters.
    
    Filter Syntax 
    {{ expression | filter}}
    
    Filter Example 
    <script type="text/javascript"> 
    { { 14 | currency } } //returns $14.00 
    </script>

    1. Report
  2. Question:What is View in AngularJS? 

    Answer
    The view is responsible for presenting your models data to end user. Typically it is the HTML markup which exists after AngularJS has parsed and compiled the HTML to include rendered markup and bindings.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd