Skip to content

Commit 91927b0

Browse files
committed
Add template file for list
1 parent 2e3f96f commit 91927b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib/list/list.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<ng-content></ng-content>
2+

src/lib/list/list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class MatListDivider {}
5050
'role': 'navigation',
5151
'class': 'mat-nav-list'
5252
},
53-
template: '<ng-content></ng-content>',
53+
templateUrl: 'list.html',
5454
styleUrls: ['list.css'],
5555
inputs: ['disableRipple'],
5656
encapsulation: ViewEncapsulation.None,
@@ -62,7 +62,7 @@ export class MdNavList extends _MdListMixinBase implements CanDisableRipple {}
6262
@Component({
6363
moduleId: module.id,
6464
selector: 'mat-list',
65-
template: '<ng-content></ng-content>',
65+
templateUrl: 'list.html',
6666
host: {'class': 'mat-list'},
6767
styleUrls: ['list.css'],
6868
inputs: ['disableRipple'],

0 commit comments

Comments
 (0)