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 721 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(__ngFactoryType__) { return new (__ngFactoryType__ || URLPipe)(); }; static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "formatUrl", type: URLPipe, pure: true, standalone: false }); } (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(URLPipe, [{ type: Pipe, args: [{ standalone: false, name: 'formatUrl' }] }], null, null); })(); //# sourceMappingURL=urlPipe.js.map