Skip to content

Instantly share code, notes, and snippets.

@qdouble
Last active August 6, 2016 17:55
Show Gist options
  • Save qdouble/1c1b630ba96e2af25bd7a3e0727c8aa0 to your computer and use it in GitHub Desktop.
Save qdouble/1c1b630ba96e2af25bd7a3e0727c8aa0 to your computer and use it in GitHub Desktop.
ngModules config
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