O'Reilly logo

Learning Web Development with Bootstrap and AngularJS by Stephen Radford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

By now you should definitely know what a filter does and why it is so helpful, but let's recap everything we've covered in this chapter.

We started off by looking at how a filter is applied directly from our view using the pipe symbol syntax and separating any arguments with a colon. Once we had the basics covered, it was time to look at the numerous included filters.

A few filters were basic, not requiring any arguments at all, but we also looked at some of the more advanced filters that allow us to order or filter an array of objects.

Apart from applying filters from the view, we also looked at two methods of filtering from our controller. We could either use the included $filter service or choose to inject our filters separately.

Finally, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required