New in Angular 1.3 - Stateless Filters

Kent C. Dodds
InstructorKent C. Dodds

Share this video with your friends

Send Tweet

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.

LiranBri
LiranBri
~ 5 years ago

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?

Kent C. Dodds
Kent C. Doddsinstructor
~ 5 years ago

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