diff --git a/src/components/list/list.js b/src/components/list/list.js index 1024ec676be..9d95718acba 100644 --- a/src/components/list/list.js +++ b/src/components/list/list.js @@ -95,7 +95,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) { tEl[0].setAttribute('role', 'listitem'); - if (tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) { + if (tAttrs.ngIf || tAttrs.ngClick || tAttrs.ngHref || tAttrs.href || tAttrs.uiSref || tAttrs.ngAttrUiSref) { wrapIn('button'); } else { for (var i = 0, type; type = proxiedTypes[i]; ++i) { @@ -165,7 +165,7 @@ function mdListItemDirective($mdAria, $mdConstant, $mdUtil, $timeout) { } function copyAttributes(item, wrapper) { - var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled', + var copiedAttrs = ['ng-if', 'ng-click', 'aria-label', 'ng-disabled', 'ui-sref', 'href', 'ng-href', 'ng-attr-ui-sref']; angular.forEach(copiedAttrs, function(attr) { if (item.hasAttribute(attr)) {