File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import {
17
17
Optional ,
18
18
QueryList ,
19
19
Renderer2 ,
20
- ViewEncapsulation
20
+ ViewEncapsulation ,
21
+ ChangeDetectionStrategy ,
21
22
} from '@angular/core' ;
22
23
import { coerceBooleanProperty , MdLine , MdLineSetter } from '../core' ;
23
24
@@ -36,7 +37,8 @@ export class MdListDivider {}
36
37
host : { 'role' : 'list' } ,
37
38
template : '<ng-content></ng-content>' ,
38
39
styleUrls : [ 'list.css' ] ,
39
- encapsulation : ViewEncapsulation . None
40
+ encapsulation : ViewEncapsulation . None ,
41
+ changeDetection : ChangeDetectionStrategy . OnPush ,
40
42
} )
41
43
export class MdList {
42
44
private _disableRipple : boolean = false ;
@@ -120,7 +122,8 @@ export class MdListSubheaderCssMatStyler {}
120
122
'(blur)' : '_handleBlur()' ,
121
123
} ,
122
124
templateUrl : 'list-item.html' ,
123
- encapsulation : ViewEncapsulation . None
125
+ encapsulation : ViewEncapsulation . None ,
126
+ changeDetection : ChangeDetectionStrategy . OnPush ,
124
127
} )
125
128
export class MdListItem implements AfterContentInit {
126
129
private _lineSetter : MdLineSetter ;
You can’t perform that action at this time.
0 commit comments