Hi,
Anyone notice that collection-repeat don’t play nicely with ui-sref. Using collection-repeat and a ui-sref linkdoesn’t seem to pass $stateParams to the controller.
Tried same link with ng-repeat and it worked like a charm.
<div ng-repeat="item in results " ng-style="{'background-color': item.accentcolor}" ui-sref="modal.view({ id : '{{item.id}}' })">{{item.id}}</div>
Does not work:
<div style="left: 0; right: 0;"
collection-repeat="item in results"
collection-item-width="320"
collection-item-height="360"
ng-style="{'background-color': item.accentcolor}"
ui-sref="modal.view({ id : '{{item.id}}' })"
>
In both cases the ‘id’ is visible in the HTML before clicking.