mseemann/angular2-mdl

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { ModuleWithProviders, NgModule } from "@angular/core";

import { FormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
import { MdlTextFieldComponent } from "./mdl-textfield.component";
import { MdlIconModule } from "../icon/mdl-icon.module";
import { MdlButtonModule } from "../button/mdl-button.module";

@NgModule({
  imports: [MdlIconModule, MdlButtonModule, FormsModule, CommonModule],
  exports: [MdlTextFieldComponent],
  declarations: [MdlTextFieldComponent],
})
export class MdlTextFieldModule {
  public static forRoot(): ModuleWithProviders<MdlTextFieldModule> {
    return {
      ngModule: MdlTextFieldModule,
      providers: [],
    };
  }
}

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