ng-inline-svg-2
Version:
Angular directive for inserting an SVG inline within an element.
18 lines (17 loc) • 942 B
TypeScript
import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
import { InlineSVGDirective } from './inline-svg.directive';
import { InlineSVGService } from './inline-svg.service';
import * as i0 from "@angular/core";
export declare class InlineSVGComponent implements AfterViewInit, OnChanges {
private _inlineSVGService;
context: InlineSVGDirective;
content: HTMLElement | SVGElement;
replaceContents: boolean;
prepend: boolean;
constructor(_inlineSVGService: InlineSVGService, el: ElementRef);
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
private _updateContent;
static ɵfac: i0.ɵɵFactoryDeclaration<InlineSVGComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<InlineSVGComponent, "inline-svg", never, { "context": "context"; "content": "content"; "replaceContents": "replaceContents"; "prepend": "prepend"; }, {}, never, never, true>;
}