import { Pipe , PipeTransform , NgModule } from '@angular/core' ; import { isString } from '../utils/utils' ; @ Pipe ( { name : 'decodeURI' , } ) export class DecodeURIPipe implements PipeTransform { transform ( input ) { if ( ! isString ( input ) ) { return input ; } return decodeURI ( input ) ; } } @ NgModule ( { declarations : [ DecodeURIPipe ] , exports : [ DecodeURIPipe ] , } ) export class NgDecodeURIPipeModule { }