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

New in Angular 1.3 - Stateless Filters

New in Angular 1.3 - Stateless Filters

3:50
Filters in AngularJS can be a big performance hog. As of Angular 1.3, filters are "stateless" by default. This means that given the same input, a filter will not even run, and simply return the previous value.
Watch this lesson now
Avatar
egghead.io

Filters in AngularJS can be a big performance hog. As of Angular 1.3, filters are "stateless" by default. This means that given the same input, a filter will not even run, and simply return the previous value.

Avatar
liranviper

in the code (at jsbin), instead of injecting the timer and then using timer.wait, you declared directly the wait argument, which is binded to timer.wait somehow.

please explain how does it work. why would angular inject the value of timer.wait into the argument wait?

Avatar
Kent C.

I'm not certain I understand your question... Could you please elaborate?

In reply to liranviper
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?