@@ -42,10 +42,22 @@ export const _MdListItemMixinBase = mixinDisableRipple(MdListItemBase);
4242} )
4343export class MdListDivider { }
4444
45+
46+ @Component ( {
47+ moduleId : module . id ,
48+ selector : 'md-nav-list, mat-nav-list' ,
49+ host : { 'role' : 'navigation' } ,
50+ template : '<ng-content></ng-content>' ,
51+ styleUrls : [ 'list.css' ] ,
52+ inputs : [ 'disableRipple' ] ,
53+ encapsulation : ViewEncapsulation . None ,
54+ changeDetection : ChangeDetectionStrategy . OnPush ,
55+ } )
56+ export class MdNavList extends _MdListMixinBase implements CanDisableRipple { }
57+
4558@Component ( {
4659 moduleId : module . id ,
47- selector : 'md-list, mat-list, md-nav-list, mat-nav-list' ,
48- host : { 'role' : 'list' } ,
60+ selector : 'md-list, mat-list' ,
4961 template : '<ng-content></ng-content>' ,
5062 styleUrls : [ 'list.css' ] ,
5163 inputs : [ 'disableRipple' ] ,
@@ -146,9 +158,9 @@ export class MdListItem extends _MdListItemMixinBase implements AfterContentInit
146158 constructor ( private _renderer : Renderer2 ,
147159 private _element : ElementRef ,
148160 @Optional ( ) private _list : MdList ,
149- @Optional ( ) navList : MdNavListCssMatStyler ) {
161+ @Optional ( ) private _navList : MdNavList ) {
150162 super ( ) ;
151- this . _isNavList = ! ! navList ;
163+ this . _isNavList = ! ! _navList ;
152164 }
153165
154166 ngAfterContentInit ( ) {
@@ -157,7 +169,7 @@ export class MdListItem extends _MdListItemMixinBase implements AfterContentInit
157169
158170 /** Whether this list item should show a ripple effect when clicked. */
159171 isRippleEnabled ( ) {
160- return ! this . disableRipple && this . _isNavList && ! this . _list . disableRipple ;
172+ return ! this . disableRipple && this . _isNavList && ! this . _navList . disableRipple ;
161173 }
162174
163175 _handleFocus ( ) {
0 commit comments