Skip to content

Commit fb89d4f

Browse files
robertmesserlejelbourn
authored andcommitted
fix(): adds directive constants to all components (#514)
closes #513
1 parent 06aa3f1 commit fb89d4f

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

src/components/icon/icon.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,5 @@ export class MdIcon implements OnChanges, OnInit, AfterViewChecked {
222222
}
223223
}
224224
}
225+
226+
export const MD_ICON_DIRECTIVES = [MdIcon];

src/components/input/input.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,4 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
297297
}
298298
}
299299

300-
export const MD_INPUT_DIRECTIVES: any[] = [
301-
MdPlaceholder,
302-
MdInput,
303-
MdHint,
304-
];
300+
export const MD_INPUT_DIRECTIVES = [MdPlaceholder, MdInput, MdHint];

src/components/list/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ export class MdListItem implements AfterContentInit {
9090
}
9191
}
9292

93-
export const MD_LIST_DIRECTIVES: any[] = [MdList, MdListItem, MdLine, MdListAvatar];
93+
export const MD_LIST_DIRECTIVES = [MdList, MdListItem, MdLine, MdListAvatar];

src/components/progress-bar/progress-bar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ export class MdProgressBar {
8888
function clamp(v: number, min = 0, max = 100) {
8989
return Math.max(min, Math.min(max, v));
9090
}
91+
92+
export const MD_PROGRESS_BAR_DIRECTIVES = [MdProgressBar];

src/components/progress-circle/progress-circle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,5 @@ function getSvgArc(currentValue: number, rotation: number) {
292292

293293
return `M${start}A${pathRadius},${pathRadius} 0 ${largeArcFlag},${arcSweep} ${end}`;
294294
}
295+
296+
export const MD_PROGRESS_CIRCLE_DIRECTIVES = [MdProgressCircle, MdSpinner];

src/components/sidenav/sidenav.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Optional,
99
Output,
1010
QueryList,
11-
Type,
1211
ChangeDetectionStrategy,
1312
EventEmitter,
1413
Renderer
@@ -375,4 +374,4 @@ export class MdSidenavLayout implements AfterContentInit {
375374
}
376375

377376

378-
export const MD_SIDENAV_DIRECTIVES: Type[] = [MdSidenavLayout, MdSidenav];
377+
export const MD_SIDENAV_DIRECTIVES = [MdSidenavLayout, MdSidenav];

src/components/slide-toggle/slide-toggle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,5 @@ export class MdSlideToggle implements ControlValueAccessor {
169169
}
170170

171171
}
172+
173+
export const MD_SLIDE_TOGGLE_DIRECTIVES = [MdSlideToggle];

src/components/toolbar/toolbar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ export class MdToolbar {
4141
}
4242

4343
}
44+
45+
export const MD_TOOLBAR_DIRECTIVES = [MdToolbar];

0 commit comments

Comments
 (0)