1.

What are filters in Angular 2?

Answer»

A filter is a NECESSARY phase of Angular 2 as well as Angular 4. It is basically used to filter an object from a crew of items, which are there in an array or an object array. It SELECTS a subset of the objects from an array and returns it as a new array and displayed on UI. Filters can be used with an expression USING pipe | sign. {{expression | filterName:parameter }} Angular 2 includes various filters to layout records of special fact types.

Also Read: How to crack the interview in the first ATTEMPT


Discussion

No Comment Found