UNPKG

@memberjunction/ng-shared

Version:

MemberJunction: MJ Explorer Angular Shared Package - utility functions and other reusable elements used across other MJ Angular packages within the MJ Explorer App - do not use outside of MJ Explorer.

17 lines 651 B
import { Pipe } from '@angular/core'; import * as i0 from "@angular/core"; export class URLPipe { transform(value) { if (value && !value.includes('http')) return 'https://' + value; else return value; } static ɵfac = function URLPipe_Factory(t) { return new (t || URLPipe)(); }; static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "formatUrl", type: URLPipe, pure: true }); } (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(URLPipe, [{ type: Pipe, args: [{ name: 'formatUrl' }] }], null, null); })(); //# sourceMappingURL=urlPipe.js.map