-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: consistent module declaration
Makes the module declarations consistent between components, by moving them all to their respective index.ts files.
- Loading branch information
Showing
62 changed files
with
679 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
import {NgModule, ModuleWithProviders} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle} from './button-toggle'; | ||
import { | ||
UNIQUE_SELECTION_DISPATCHER_PROVIDER, | ||
CompatibilityModule, | ||
FocusOriginMonitor, | ||
} from '../core'; | ||
|
||
|
||
@NgModule({ | ||
imports: [FormsModule, CompatibilityModule], | ||
exports: [ | ||
MdButtonToggleGroup, | ||
MdButtonToggleGroupMultiple, | ||
MdButtonToggle, | ||
CompatibilityModule, | ||
], | ||
declarations: [MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle], | ||
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER, FocusOriginMonitor] | ||
}) | ||
export class MdButtonToggleModule { | ||
/** @deprecated */ | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: MdButtonToggleModule, | ||
providers: [] | ||
}; | ||
} | ||
} | ||
|
||
|
||
export * from './button-toggle'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
import {NgModule, ModuleWithProviders} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {MdRippleModule, CompatibilityModule} from '../core'; | ||
import { | ||
MdButton, | ||
MdAnchor, | ||
MdButtonCssMatStyler, | ||
MdRaisedButtonCssMatStyler, | ||
MdIconButtonCssMatStyler, | ||
MdFabCssMatStyler, | ||
MdMiniFabCssMatStyler, | ||
} from './button'; | ||
|
||
|
||
@NgModule({ | ||
imports: [CommonModule, MdRippleModule, CompatibilityModule], | ||
exports: [ | ||
MdButton, | ||
MdAnchor, | ||
CompatibilityModule, | ||
MdButtonCssMatStyler, | ||
MdRaisedButtonCssMatStyler, | ||
MdIconButtonCssMatStyler, | ||
MdFabCssMatStyler, | ||
MdMiniFabCssMatStyler | ||
], | ||
declarations: [ | ||
MdButton, | ||
MdAnchor, | ||
MdButtonCssMatStyler, | ||
MdRaisedButtonCssMatStyler, | ||
MdIconButtonCssMatStyler, | ||
MdFabCssMatStyler, | ||
MdMiniFabCssMatStyler | ||
], | ||
}) | ||
export class MdButtonModule { | ||
/** @deprecated */ | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: MdButtonModule, | ||
providers: [] | ||
}; | ||
} | ||
} | ||
|
||
|
||
export * from './button'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,57 @@ | ||
import {NgModule, ModuleWithProviders} from '@angular/core'; | ||
import {CompatibilityModule} from '../core'; | ||
import { | ||
MdCard, | ||
MdCardHeader, | ||
MdCardTitleGroup, | ||
MdCardContent, | ||
MdCardTitle, | ||
MdCardSubtitle, | ||
MdCardActions, | ||
MdCardFooter, | ||
MdCardSmImage, | ||
MdCardMdImage, | ||
MdCardLgImage, | ||
MdCardImage, | ||
MdCardXlImage, | ||
MdCardAvatar, | ||
} from './card'; | ||
|
||
|
||
@NgModule({ | ||
imports: [CompatibilityModule], | ||
exports: [ | ||
MdCard, | ||
MdCardHeader, | ||
MdCardTitleGroup, | ||
MdCardContent, | ||
MdCardTitle, | ||
MdCardSubtitle, | ||
MdCardActions, | ||
MdCardFooter, | ||
MdCardSmImage, | ||
MdCardMdImage, | ||
MdCardLgImage, | ||
MdCardImage, | ||
MdCardXlImage, | ||
MdCardAvatar, | ||
CompatibilityModule, | ||
], | ||
declarations: [ | ||
MdCard, MdCardHeader, MdCardTitleGroup, MdCardContent, MdCardTitle, MdCardSubtitle, | ||
MdCardActions, MdCardFooter, MdCardSmImage, MdCardMdImage, MdCardLgImage, MdCardImage, | ||
MdCardXlImage, MdCardAvatar, | ||
], | ||
}) | ||
export class MdCardModule { | ||
/** @deprecated */ | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: MdCardModule, | ||
providers: [] | ||
}; | ||
} | ||
} | ||
|
||
|
||
export * from './card'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.