I have a <ion-list> with <ion-item>s in my template. The items are linked using ng-href. Now I want to remove this link depending on the state that is using this template.
For elements (e.g. images) inside the ion-item I can user ng-show="$state.includes('app.showElementsOnThisState')" after I put the state into $scope.state in the controller, but this of course doesn’t work for the whole <ion-item> without duplicating it and all its content, and that I don’t want.