Skip to content

Commit

Permalink
fix(): adds directive constants to all components (#514)
Browse files Browse the repository at this point in the history
closes #513
  • Loading branch information
robertmesserle authored and jelbourn committed May 25, 2016
1 parent 06aa3f1 commit fb89d4f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/components/icon/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,5 @@ export class MdIcon implements OnChanges, OnInit, AfterViewChecked {
}
}
}

export const MD_ICON_DIRECTIVES = [MdIcon];
6 changes: 1 addition & 5 deletions src/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,4 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
}
}

export const MD_INPUT_DIRECTIVES: any[] = [
MdPlaceholder,
MdInput,
MdHint,
];
export const MD_INPUT_DIRECTIVES = [MdPlaceholder, MdInput, MdHint];
2 changes: 1 addition & 1 deletion src/components/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ export class MdListItem implements AfterContentInit {
}
}

export const MD_LIST_DIRECTIVES: any[] = [MdList, MdListItem, MdLine, MdListAvatar];
export const MD_LIST_DIRECTIVES = [MdList, MdListItem, MdLine, MdListAvatar];
2 changes: 2 additions & 0 deletions src/components/progress-bar/progress-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ export class MdProgressBar {
function clamp(v: number, min = 0, max = 100) {
return Math.max(min, Math.min(max, v));
}

export const MD_PROGRESS_BAR_DIRECTIVES = [MdProgressBar];
2 changes: 2 additions & 0 deletions src/components/progress-circle/progress-circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,5 @@ function getSvgArc(currentValue: number, rotation: number) {

return `M${start}A${pathRadius},${pathRadius} 0 ${largeArcFlag},${arcSweep} ${end}`;
}

export const MD_PROGRESS_CIRCLE_DIRECTIVES = [MdProgressCircle, MdSpinner];
3 changes: 1 addition & 2 deletions src/components/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Optional,
Output,
QueryList,
Type,
ChangeDetectionStrategy,
EventEmitter,
Renderer
Expand Down Expand Up @@ -375,4 +374,4 @@ export class MdSidenavLayout implements AfterContentInit {
}


export const MD_SIDENAV_DIRECTIVES: Type[] = [MdSidenavLayout, MdSidenav];
export const MD_SIDENAV_DIRECTIVES = [MdSidenavLayout, MdSidenav];
2 changes: 2 additions & 0 deletions src/components/slide-toggle/slide-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,5 @@ export class MdSlideToggle implements ControlValueAccessor {
}

}

export const MD_SLIDE_TOGGLE_DIRECTIVES = [MdSlideToggle];
2 changes: 2 additions & 0 deletions src/components/toolbar/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ export class MdToolbar {
}

}

export const MD_TOOLBAR_DIRECTIVES = [MdToolbar];

0 comments on commit fb89d4f

Please sign in to comment.