My Experience With Tracking by $index
If you found this post while trying to optimize your angular templates, I have a cautionary tale for you. This might be just me, but this one hurt.
At work we have an AngularJS application. This application has one particular list really long, really complex, really grinds the tablets to a halt. How do you solve that?
My first tought was, there is too many watches in there. One-time bind all the
things. for those of you that dont know one-time binding is done by adding two
colons at the beginnig of the variable name {{::variable}}. It gets evaluated
once, the first time it has a value, and then angular just forgets about it.