Collection-repeat and WP


#1

Hi guys,

I know Windows Phone / Internet Explorer is not supported by Ionic yet, but I wanted to ask for your help on this issue. I found that collection-repeat doesn’t work on IE due to a

    TypeError: Unable to get property '$index' of undefined or null reference
       at CollectionRepeatDataSource.prototype.attachItemAtIndex (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:35619:7)
       at CollectionRepeatManager.prototype.renderItem (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:36062:7)
       at CollectionRepeatManager.prototype[key] (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:36095:7)
       at doRender (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:36056:11)
       at CollectionRepeatManager.prototype.render (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:36033:9)
       at CollectionRepeatManager.prototype[key] (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:36095:7)
       at CollectionRepeatManager.prototype.resize (http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js:35910:7)

You can easily reproduce it by opening the following link with IE: http://codepen.io/anon/pen/BxnGm (with the Dev. Tools opened)

I’ve also confirmed that collection-repeat works with version 1.0.0-beta.6 (all tested on emulated WP8 / IE10).

Just in case, I’ve opened an issue on GitHub hoping that somebody can have a look and maybe provide a quick workaround. That would be great.

Thanks in advance.
Rafa.