I recently upgraded from Ionic beta 7 to beta 14 and ran into an issue with opening a page from a list item link.
Sample code:
.state('list',{ url: '/list', templateUrl: 'views/list.html', controller: 'ListCtrl' }) .state('list.item',{ url: '/list/:id', templateUrl: 'views/item.html', controller: 'ItemCtrl' })
<ion-list can-swipe="listCanSwipe"> <ion-item ng-repeat="item in items" class="item-thumbnail-left" ui-sref="list.item({id:itemId})"> </ion-item> </ion-list>
“item.Id” is a hypothetical id assigned to a list item in the controller. I’ve also tried ng-ref="#/list/item/{{item.id}}". In a browser, the correct url appears, but the view never changes. On a device, tapping the list item does nothing. In a browser, the click registers, but nothing happens. I’ve also tried editing some codepens out there with the same structure and using what I’ve posted here and also changing the ion-list to ul and ion-item to li. No change in behavior. Am I missing something?