Skip to main content

Using Filters

  • Chapter
  • First Online:
Pro AngularJS
  • 3852 Accesses

Abstract

Filters transform the data before it is processed by a directive and displayed in a view without modifying the original data in the scope, allowing the same data to be displayed in different ways in different parts of the application. Filters can perform any kind of transformation, but for the most part they are used to format or sort the data in some way. In this chapter, I explain the role that filters play in an AngularJS application, describe the built-in AngularJS filters, and demonstrate how to create and apply custom filters. Table 14-1 summarizes this chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Adam Freeman

About this chapter

Cite this chapter

Freeman, A. (2014). Using Filters. In: Pro AngularJS. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6449-1_14

Download citation

Publish with us

Policies and ethics