There is a requirement that in the collection repeat the records with hidden:true property should not be saved. So, I tried using ng-if and I ended with an error:
TypeError: Cannot set property 'webkitTransform' of undefined
and
TypeError: clone[0].removeAttribute is not a function
But when I use ng-repeat, it works. Has anyone else faced this problem? What is the solution?
do you mean with “saved” the caching?
collection-repeat needs this hidden elements to show the correct entries (fast enough, e.g. while scrolling) and to be sure that there are enough list-entries in the viewport.
With ng-repeat it works because there are no additional list entries.