UNPKG

@dotglitch/ngx-common

Version:

Angular components and utilities that are commonly used.

17 lines (16 loc) 642 B
import { PipeTransform } from '@angular/core'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; import * as i0 from "@angular/core"; /** * Url Sanitizer pipe. * * This trusts URLs that exist in a safe list defined in our environments.ts file. * Any other URLs will NOT be trusted, thus will not be loaded. */ export declare class ScriptBypass implements PipeTransform { private sanitizer; constructor(sanitizer: DomSanitizer); transform(url: string): SafeUrl; static ɵfac: i0.ɵɵFactoryDeclaration<ScriptBypass, never>; static ɵpipe: i0.ɵɵPipeDeclaration<ScriptBypass, "scriptbypass", true>; }