Skip to content

Instantly share code, notes, and snippets.

@jonniedarko
Created October 6, 2016 14:00
Show Gist options
  • Save jonniedarko/955bcfd568d35d6800fa6e8a508225b2 to your computer and use it in GitHub Desktop.
Save jonniedarko/955bcfd568d35d6800fa6e8a508225b2 to your computer and use it in GitHub Desktop.
Angular2-material Module wrapper
import { NgModule } from '@angular/core';
// Material
import { MdCardModule } from '@angular2-material/card';
import { MdButtonModule } from '@angular2-material/button';
import { MdInputModule } from '@angular2-material/input';
import { MdToolbarModule } from '@angular2-material/toolbar';
import { MdListModule } from '@angular2-material/list';
import { MdIconModule, MdIconRegistry } from '@angular2-material/icon';
const MATERIAL_UI_MODULES = [
MdCardModule,
MdButtonModule,
MdInputModule,
MdToolbarModule,
MdIconModule,
MdListModule,
// MdMenuModule
// MdToolbar
];
const MATERIAL_UI_REGISTRIES = [
MdIconRegistry
];
@NgModule({
imports: [
...MATERIAL_UI_MODULES,
],
providers: MATERIAL_UI_REGISTRIES,
exports: [
...MATERIAL_UI_MODULES,
]
})
export class MaterialModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment