openaire-library/utils/helper/helper.module.ts

38 lines
985 B
TypeScript
Raw Normal View History

import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule} from '@angular/common';
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';
import {SafeHtmlPipe} from '../pipes/safeHTML.pipe';
@NgModule({
imports: [
CommonModule, FormsModule,
// RouterModule//,HelperServiceModule
],
declarations: [
HelperComponent,
SafeHtmlPipe
],
providers:[HelperService],
exports: [
HelperComponent
]
})
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}]
// };
// }
}