The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Built-in Filters

Built-in Filters

2:13
AngularJS comes with several handy filters that you can use out of the box. These filters can be combined to create more complex filtered results.
Watch this lesson now
Avatar
egghead.io

AngularJS comes with several handy filters that you can use out of the box. These filters can be combined to create more complex filtered results.

Avatar
Ignacio

It's important to say that the order of the filters are relevant:
1) ng-repeat="actor in avengers.cast | orderBy:'character' | limitTo:5 | filter:searchText"
Here we are searching only in the 5 that we limit to.

2) ng-repeat="actor in avengers.cast | filter:searchText | orderBy:'character' | limitTo:5"
Here we search first in all the records then we order and filter them.

Am I correct?

In reply to egghead.io
Avatar
Joel

Absolutely correct. It's a "pipe" that passes results from left to right.

In reply to Ignacio
Avatar
Roman Ganchenko

I would like to know how did you configure your app in WebStorm so it's using LiveReload and JavaScript debugger from WebStorm

Avatar
Wayne

Reminds me of sql and functional programming. Me likey.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?