You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
I'm using angular-material 1.0.4 and md-virtual-repeat does not seem to consider the value of md-on-demand when I use the following code (numbers is a plain old array)
<md-virtual-repeat-containerid="list-container"><divmd-virtual-repeat="num in numbers" md-on-demand="false">
{{num}}
</div></md-virtual-repeat-container>
I see this error:
Error: When md-on-demand is enabled, the Object passed to md-virtual-repeat
must implement functions getItemAtIndex() and getLength()
Removing the attribute solves the problem. I'd consider doing that, but in my case, I'm wrapping md-virtual-repeat within a directive that determines if the list is paginated (md-on-demand=true), or a bulk array of elements (md-on-demand=false, like the vertical usage example in the demo page) based on some factors.