Transcript from the "Classes Directive" Lesson
[00:00:15] So instead of having current === 'foo' 'active' otherwise empty, we can just replace that whole thing with class:active = current === 'foo'. And we can get rid of those quotes, we're not asking anything. Apply that to all of those. And now the current class will, oops, I forgot to add the active.
[00:00:54] So now when we click on these, the active class, which adds this background style to the button, will get applied whenever this condition is true for each of the buttons in turn. And that's just less stuff to write. Just like with the bind value shorthand and source equal source shorthand that we've already encountered, you'll very often have a situation like this where the class that you're toggling is the same as the name of the condition.
[00:01:32] And so you have something like this class:big = big, which works like this. We can just get rid of the = big part of that, and spell it will fill in the blanks for us.