refactored md-list no longer supports ui-sref
<md-item ui-sref="newroute">
</md-item>
this should honour the ui-route routing as well as add the md-clickable class
update...
<md-item class="md-3-line">
<div class="md-item-text" ui-sref="newroute">
<h3>Some text</h3>
</div>
</md-item>
...does work. Not sure if this is a bug or a design decision?
@hodeyp the issue is that md-list now ignores clicks itself, and requires them to go in nested items. With ng-click, this is done for you (automatically). Perhaps we should extend this to href, ng-href, ui-sref, and ng-attr-ui-sref.
This is because (from an accessibility standpoint) the md-item is already of role="listitem". To be truly accessible, the inner element should have a role="button" as elements are not able to have multiple roles.
:+1: thanks @rschmukler
Agreed that it should probably support href variants.
+1
I used this functionality before and was wondering why this wasn't working anymore.
+1 I added a workaround using ng-click to a function that used $scope.go
+1
+1, $scope.go stops IE from working.
If you want to have a ripple effect on the element "md-ink-ripple" added to the tags of the element does the trip.
+1
+1 - I'd rather not have to call $state.go manually just to workaround this.
+1
+1
+1
+1
my workaround was wrapping the item inside a div that holds the ui-sref...
<md-list>
<div ng-repeat="obj in col" ui-sref="route.any")
<md-list-item>
...
+1
+1
+1
+1
+1
+1
+1