I've been reading about bindonce as a way of reducing watches and enhance performance. In an effort to better understand the package i made an example with ng-repeat
.
Without bindonce
I'm getting 103 watches, 100 list items + 2 buttons.
Using bindonce
i'm getting 3 watches, 2 bottons + 1 fort the list.
If I understood binonce
correctly, it removes the watch once the binded object is resolved and rendered. So,
How is it possible that using bindonce
, changes made to the object are still reflected in the DOM ?