Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(): adds directive constants to all components #514

Merged
merged 1 commit into from
May 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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];