Tell me filter filter?
Submitted by: Muhammadfilter filter is used to filter the array to a subset of it based on provided criteria.
In below example, to display only required subjects, we've used subjectName as filter.
Enter subject: <input type = "text" ng-model = "subjectName">
Subject:
<ul>
<li ng-repeat = "subject in student.subjects | filter: subjectName">
{{ subject.name + ', marks:' + subject.marks }}
</li>
</ul>
Submitted by: Muhammad
In below example, to display only required subjects, we've used subjectName as filter.
Enter subject: <input type = "text" ng-model = "subjectName">
Subject:
<ul>
<li ng-repeat = "subject in student.subjects | filter: subjectName">
{{ subject.name + ', marks:' + subject.marks }}
</li>
</ul>
Submitted by: Muhammad
Read Online AngularJS Developer Job Interview Questions And Answers
Top AngularJS Developer Questions
☺ | Please explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? |
☺ | Explain on which types of component can we create a custom directive? |
☺ | Tell me what is AngularJS? |
☺ | Tell me how does the digest phase work? |
☺ | what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |