Tag: JavaScript
-
Knockout alternate formattting
I was using KnockoutJS to loop through and display some data. I wanted to apply some alternate formatting on every other row. I used this syntax containing the MOD operation to achieve the formatting I wanted. The other thing I learned was that $index() is observable, so I can +1 it? I believe that is…
