R
R
Roman Rakzin2015-06-27 21:13:09
Angular
Roman Rakzin, 2015-06-27 21:13:09

How to filter an object in angularjs?

How to filter an object in angularjs?
For example, there is an object with properties Name, Age... I need to display everything, for example, where Name='Roman' and Age= 26
How to do it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
_
_ _, 2015-06-27
@AMar4enko

Get familiar with underscore or lodash and use _.filter

A
Alexander Tartmin, 2015-06-27
@baskerville42

https://docs.angularjs.org/api/ng/filter/filter
Sometimes you don't even know how to respond to questions. It seems that there is documentation, and even Russian documentation is there ...

M
Maxim Kuznetsov, 2015-06-27
@NewProject1

There is a special mechanism for this, which has flexible filtering settings by default.
You can read more in the documentation .
And if the standard functionality is not enough, you can always write your own, custom filter.

S
scapp, 2015-06-28
@scapp

Colleagues, you will agree that the "native" documentation of Angular.js sucks.
Just set up Google to filter docs.angularjs.org and life will become easier right away.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question