refactor(components): convert components to separate modules

This commit is contained in:
Brandy Carney
2017-03-15 16:06:35 -04:00
parent 5d668036e6
commit ddcd3cf1c5
55 changed files with 1475 additions and 346 deletions

View File

@ -0,0 +1,33 @@
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { ButtonModule } from '../button/button.module';
import { BackdropModule } from '../backdrop/backdrop.module';
import { AlertCmp } from './alert-component';
@NgModule({
imports: [
BackdropModule,
ButtonModule,
CommonModule,
FormsModule
],
declarations: [
AlertCmp
],
exports: [
AlertCmp
],
entryComponents: [
AlertCmp
]
})
export class AlertModule {
public static forRoot(): ModuleWithProviders {
return {
ngModule: AlertModule, providers: []
};
}
}