Add a module for safeHTMLPipe

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51839 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-04-17 13:46:17 +00:00
parent 881ea5443d
commit 5c25acb63b
3 changed files with 29 additions and 8 deletions

View File

@ -3,18 +3,18 @@ import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import {AltMetricsComponent} from './altmetrics.component';
import {SafeHtmlPipe} from './pipes/safeHTML.pipe';
import {SafeHtmlPipeModule} from './pipes/safeHTMLPipe.module';
@NgModule({
imports: [
CommonModule, FormsModule
CommonModule, FormsModule, SafeHtmlPipeModule
],
declarations: [
AltMetricsComponent, SafeHtmlPipe
AltMetricsComponent
],
exports: [
AltMetricsComponent, SafeHtmlPipe
AltMetricsComponent
]
})
export class AltMetricsModule { }

View File

@ -7,16 +7,15 @@ import { FormsModule } from '@angular/forms';
import {HelperComponent} from './helper.component';
// import {HelperServiceModule} from './helperService.module';
import {HelperService} from './helper.service';
import {SafeHtmlPipe} from '../pipes/safeHTML.pipe';
import {SafeHtmlPipeModule} from '../pipes/safeHTMLPipe.module';
@NgModule({
imports: [
CommonModule, FormsModule,
CommonModule, FormsModule,SafeHtmlPipeModule
// RouterModule//,HelperServiceModule
],
declarations: [
HelperComponent,
SafeHtmlPipe
HelperComponent
],
providers:[HelperService],
exports: [

View File

@ -0,0 +1,22 @@
import { NgModule } from '@angular/core';
import {SafeHtmlPipe} from './safeHTML.pipe';
@NgModule({
imports: [
],
declarations: [
SafeHtmlPipe
],
providers:[],
exports: [
SafeHtmlPipe
]
})
export class SafeHtmlPipeModule{
}