mseemann/angular2-mdl

View on GitHub
projects/core/src/lib/list/mdl-list.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { ModuleWithProviders, NgModule } from "@angular/core";
import {
  MdlListComponent,
  MdlListItemAvatarDirective,
  MdlListItemComponent,
  MdlListItemIconDirective,
  MdlListItemPrimaryContentComponent,
  MdlListItemSecondaryActionComponent,
  MdlListItemSecondaryContentComponent,
  MdlListItemSecondaryInfoComponent,
  MdlListItemSubTitleComponent,
  MdlListItemTextBodyComponent,
} from "./mdl-list.component";

const MDL_LIST_DIRECTIVES = [
  MdlListComponent,
  MdlListItemComponent,
  MdlListItemPrimaryContentComponent,
  MdlListItemIconDirective,
  MdlListItemAvatarDirective,
  MdlListItemSecondaryContentComponent,
  MdlListItemSecondaryActionComponent,
  MdlListItemSubTitleComponent,
  MdlListItemSecondaryInfoComponent,
  MdlListItemTextBodyComponent,
];

@NgModule({
  imports: [],
  exports: MDL_LIST_DIRECTIVES,
  declarations: MDL_LIST_DIRECTIVES,
})
export class MdlListModule {
  static forRoot(): ModuleWithProviders<MdlListModule> {
    return {
      ngModule: MdlListModule,
      providers: [],
    };
  }
}

export * from "./mdl-list.component";