UNPKG

@o3r/dynamic-content

Version:

This module provides a mechanism to retrieve media and data depending on the host or a server specific url.

22 lines 1.02 kB
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core'; import { Subscription } from 'rxjs'; import { DynamicContentService } from './dynamic-content.service'; import * as i0 from "@angular/core"; export declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy { protected readonly service: DynamicContentService; protected readonly cd: ChangeDetectorRef; /** Last query value */ protected lastQuery?: string; /** Subscription to retrieve media path */ protected onMediaPathChange?: Subscription; /** Path to the media */ protected mediaPath: string; constructor(service: DynamicContentService, cd: ChangeDetectorRef); /** @inheritDoc */ transform(query?: string): string; /** @inheritDoc */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<O3rDynamicContentPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>; } //# sourceMappingURL=dynamic-content.pipe.d.ts.map