How to use the @angular2-material/core.MdCoreModule.forRoot function in @angular2-material/core

To help you get started, we’ve selected a few @angular2-material/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robisim74 / angular-l10n / app / shared / material.module.ts View on Github external
const MATERIAL_MODULES: any[] = [
    MdCoreModule,
    MdSidenavModule,
    MdListModule,
    MdToolbarModule,
    MdCardModule,
    MdRadioModule,
    MdInputModule,
    MdButtonModule,
    MdIconModule
];

@NgModule({
    imports: [
        MdCoreModule.forRoot(),
        MdSidenavModule.forRoot(),
        MdListModule.forRoot(),
        MdToolbarModule.forRoot(),
        MdCardModule.forRoot(),
        MdRadioModule.forRoot(),
        MdInputModule.forRoot(),
        MdButtonModule.forRoot(),
        MdIconModule.forRoot()
    ],
    exports: MATERIAL_MODULES
})

export class MaterialModule { }
github kamilkisiela / angular2-graphql-rest / src / client / index.ts View on Github external
import { ListRest } from './components/List.rest';

@NgModule({
  declarations: [
    App,
    DisplayFriendPipe,
    FriendsGraphql,
    FriendsRest,
    Intro,
    ListGraphql,
    ListRest
  ],
  imports: [
    BrowserModule,
    HttpModule,
    MdCoreModule.forRoot(),
    MdCardModule.forRoot(),
    MdButtonModule.forRoot(),
    MdToolbarModule.forRoot(),
    RouterModule.forRoot(routes)
  ],
  providers: [
    ProfilesService,
  ],
  bootstrap: [App]
})
export class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);