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

Filters

Filters

2:19
Many times while building an AngularJS application you'll need to manipulate data, and it doesn't make sense to do it with a Controller method. Luckily you have Filters, which are particularly well suited for manipulating text within your HTML views. This handy tool uses a simple syntax to create highly reusable functionality for your apps.
Watch this lesson now
Avatar
egghead.io

Many times while building an AngularJS application you'll need to manipulate data, and it doesn't make sense to do it with a Controller method. Luckily you have Filters, which are particularly well suited for manipulating text within your HTML views. This handy tool uses a simple syntax to create highly reusable functionality for your apps.

Avatar
Abdel

Hi, I was watching https://egghead.io/lessons/angularjs-filters and I came to notice about "AngularJS 1.3: Controllers can no longer be global functions. ". In the details link provided.. It says to define the controller function as anonymous function .. How does this effect testing? also, this is how I currently define my controllers.. Please have a look at this jsfiddle: http://jsfiddle.net/olakara/9fyg8kvs/ . What is best practice for working on Angular 1.3 & 1.4 ?

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