Last active
August 6, 2016 17:55
-
-
Save qdouble/1c1b630ba96e2af25bd7a3e0727c8aa0 to your computer and use it in GitHub Desktop.
ngModules config
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
const MATERIAL_DESIGN_DIRECTIVES = [ | |
MdButton, | |
MdInput, | |
]; | |
@NgModule({ | |
imports: [ | |
BrowserModule, | |
ReactiveFormsModule, | |
FormsModule, | |
MdCardModule, | |
MdCheckboxModule, | |
MdIconModule, | |
MdListModule, | |
MdSidenavModule, | |
MdToolbarModule, | |
RouterModule.forRoot([...routes | |
], {}) | |
], | |
declarations: [ | |
App, | |
...MATERIAL_DESIGN_DIRECTIVES, | |
...PAGES_COMMON, | |
...PAGES_COMPONENTS, | |
...PROJECT_COMPONENT_DIRECTIVES | |
], | |
providers: [ | |
...APP_PROVIDERS, | |
...PROVIDERS, | |
MdIconRegistry | |
], | |
schemas: [CUSTOM_ELEMENTS_SCHEMA], | |
entryComponents: [ | |
...PAGES_COMPONENTS | |
], | |
bootstrap: [ | |
App | |
] | |
}) | |
export class MyAppModule { | |
ngDoBootstrap(appRef: ApplicationRef) { | |
appRef.bootstrap(App); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment