@@ -12,9 +12,7 @@ import {
12
12
*/
13
13
@Directive ( {
14
14
selector : 'md-card-content, mat-card-content' ,
15
- host : {
16
- '[class.mat-card-content]' : 'true'
17
- }
15
+ host : { 'class' : 'mat-card-content' }
18
16
} )
19
17
export class MdCardContent { }
20
18
@@ -24,9 +22,7 @@ export class MdCardContent {}
24
22
*/
25
23
@Directive ( {
26
24
selector : 'md-card-title, mat-card-title, [md-card-title], [mat-card-title]' ,
27
- host : {
28
- '[class.mat-card-title]' : 'true'
29
- }
25
+ host : { 'class' : 'mat-card-title' }
30
26
} )
31
27
export class MdCardTitle { }
32
28
@@ -36,9 +32,7 @@ export class MdCardTitle {}
36
32
*/
37
33
@Directive ( {
38
34
selector : 'md-card-subtitle, mat-card-subtitle, [md-card-subtitle], [mat-card-subtitle]' ,
39
- host : {
40
- '[class.mat-card-subtitle]' : 'true'
41
- }
35
+ host : { 'class' : 'mat-card-subtitle' }
42
36
} )
43
37
export class MdCardSubtitle { }
44
38
@@ -48,9 +42,7 @@ export class MdCardSubtitle {}
48
42
*/
49
43
@Directive ( {
50
44
selector : 'md-card-actions, mat-card-actions' ,
51
- host : {
52
- '[class.mat-card-actions]' : 'true'
53
- }
45
+ host : { 'class' : 'mat-card-actions' }
54
46
} )
55
47
export class MdCardActions { }
56
48
@@ -60,9 +52,7 @@ export class MdCardActions {}
60
52
*/
61
53
@Directive ( {
62
54
selector : 'md-card-footer, mat-card-footer' ,
63
- host : {
64
- '[class.mat-card-footer]' : 'true'
65
- }
55
+ host : { 'class' : 'mat-card-footer' }
66
56
} )
67
57
export class MdCardFooter { }
68
58
@@ -72,9 +62,7 @@ export class MdCardFooter {}
72
62
*/
73
63
@Directive ( {
74
64
selector : '[md-card-sm-image], [mat-card-sm-image]' ,
75
- host : {
76
- '[class.mat-card-sm-image]' : 'true'
77
- }
65
+ host : { 'class' : 'mat-card-sm-image' }
78
66
} )
79
67
export class MdCardSmImage { }
80
68
@@ -84,9 +72,7 @@ export class MdCardSmImage {}
84
72
*/
85
73
@Directive ( {
86
74
selector : '[md-card-md-image], [mat-card-md-image]' ,
87
- host : {
88
- '[class.mat-card-md-image]' : 'true'
89
- }
75
+ host : { 'class' : 'mat-card-md-image' }
90
76
} )
91
77
export class MdCardMdImage { }
92
78
@@ -96,9 +82,7 @@ export class MdCardMdImage {}
96
82
*/
97
83
@Directive ( {
98
84
selector : '[md-card-lg-image], [mat-card-lg-image]' ,
99
- host : {
100
- 'class.mat-card-lg-image' : 'true'
101
- }
85
+ host : { 'class' : 'mat-card-lg-image' }
102
86
} )
103
87
export class MdCardLgImage { }
104
88
@@ -108,9 +92,7 @@ export class MdCardLgImage {}
108
92
*/
109
93
@Directive ( {
110
94
selector : '[md-card-image], [mat-card-image]' ,
111
- host : {
112
- '[class.mat-card-image]' : 'true'
113
- }
95
+ host : { 'class' : 'mat-card-image' }
114
96
} )
115
97
export class MdCardImage { }
116
98
@@ -120,9 +102,7 @@ export class MdCardImage {}
120
102
*/
121
103
@Directive ( {
122
104
selector : '[md-card-xl-image], [mat-card-xl-image]' ,
123
- host : {
124
- '[class.mat-card-xl-image]' : 'true'
125
- }
105
+ host : { 'class' : 'mat-card-xl-image' }
126
106
} )
127
107
export class MdCardXlImage { }
128
108
@@ -132,9 +112,7 @@ export class MdCardXlImage {}
132
112
*/
133
113
@Directive ( {
134
114
selector : '[md-card-avatar], [mat-card-avatar]' ,
135
- host : {
136
- '[class.mat-card-avatar]' : 'true'
137
- }
115
+ host : { 'class' : 'mat-card-avatar' }
138
116
} )
139
117
export class MdCardAvatar { }
140
118
@@ -157,9 +135,7 @@ export class MdCardAvatar {}
157
135
styleUrls : [ 'card.css' ] ,
158
136
encapsulation : ViewEncapsulation . None ,
159
137
changeDetection : ChangeDetectionStrategy . OnPush ,
160
- host : {
161
- '[class.mat-card]' : 'true'
162
- }
138
+ host : { 'class' : 'mat-card' }
163
139
} )
164
140
export class MdCard { }
165
141
@@ -175,9 +151,7 @@ export class MdCard {}
175
151
templateUrl : 'card-header.html' ,
176
152
encapsulation : ViewEncapsulation . None ,
177
153
changeDetection : ChangeDetectionStrategy . OnPush ,
178
- host : {
179
- '[class.mat-card-header]' : 'true'
180
- }
154
+ host : { 'class' : 'mat-card-header' }
181
155
} )
182
156
export class MdCardHeader { }
183
157
@@ -193,8 +167,6 @@ export class MdCardHeader {}
193
167
templateUrl : 'card-title-group.html' ,
194
168
encapsulation : ViewEncapsulation . None ,
195
169
changeDetection : ChangeDetectionStrategy . OnPush ,
196
- host : {
197
- '[class.mat-card-title-group]' : 'true'
198
- }
170
+ host : { 'class' : 'mat-card-title-group' }
199
171
} )
200
172
export class MdCardTitleGroup { }
0 commit comments