2018-02-05 14:14:59 +01:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { CommonModule} from '@angular/common';
|
2017-12-19 13:53:46 +01:00
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
// import { RouterModule } from "@angular/router";
|
|
|
|
|
|
|
|
import {HelperComponent} from './helper.component';
|
|
|
|
// import {HelperServiceModule} from './helperService.module';
|
|
|
|
import {HelperService} from './helper.service';
|
2018-04-17 15:46:17 +02:00
|
|
|
import {SafeHtmlPipeModule} from '../pipes/safeHTMLPipe.module';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2018-04-17 15:46:17 +02:00
|
|
|
CommonModule, FormsModule,SafeHtmlPipeModule
|
2017-12-19 13:53:46 +01:00
|
|
|
// RouterModule//,HelperServiceModule
|
|
|
|
],
|
|
|
|
declarations: [
|
2018-04-17 15:46:17 +02:00
|
|
|
HelperComponent
|
2017-12-19 13:53:46 +01:00
|
|
|
],
|
|
|
|
providers:[HelperService],
|
|
|
|
exports: [
|
|
|
|
HelperComponent
|
|
|
|
]
|
|
|
|
})
|
2018-02-05 14:14:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
export class HelperModule{
|
|
|
|
// static forRoot(config: any): ModuleWithProviders {
|
|
|
|
// // User config get logged here
|
|
|
|
// console.log(config);
|
|
|
|
// return {
|
|
|
|
// ngModule: HelperService,
|
|
|
|
// providers: [HelperService, {provide: 'config', useValue: config}]
|
|
|
|
// };
|
|
|
|
// }
|
|
|
|
}
|