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?

Upvotes: 3

Views: 1364

Answers (1)

Pankaj Parkar
Pankaj Parkar

Reputation: 136144

You should filter on specific property

<div collection-repeat="item in container.items| filter : {isShowing: true}">

Upvotes: 3

Related Questions