Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 310 Bytes
import { Pipe, PipeTransform } from '@angular/core';
import { isString } from '../utils/utils';
@Pipe({
name: 'decodeURI'
})
export class DecodeURIPipe implements PipeTransform {
transform (input: any) {
if (!isString(input)) {
return input;
}
return decodeURI(input);
}
}
You can’t perform that action at this time.