Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collection repeat with ng-if causing an 'webkitTransform' error

I am trying to use ng-if in a collection repeat in order to hide some list items and I am having with an error:

TypeError: Cannot set property 'webkitTransform' of undefined

This is how I am using it:

<div collection-repeat="item in container.items" ng-if="item.isShowing">
...
...
...
</div>

It works if I use ng-repeat though.
Is there a way to fix this?

like image 238
Omar Alejandro Chacin Ortega Avatar asked Nov 26 '25 13:11

Omar Alejandro Chacin Ortega


1 Answers

You should filter on specific property

<div collection-repeat="item in container.items| filter : {isShowing: true}">
like image 98
Pankaj Parkar Avatar answered Nov 28 '25 01:11

Pankaj Parkar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!