ng-inline-svg-2
Version:
Angular directive for inserting an SVG inline within an element.
31 lines (30 loc) • 1.4 kB
JavaScript
import { NgModule } from '@angular/core';
import { InlineSVGComponent } from './inline-svg.component';
import { InlineSVGConfig } from './inline-svg.config';
import { InlineSVGDirective } from './inline-svg.directive';
import * as i0 from "@angular/core";
var InlineSVGModule = (function () {
function InlineSVGModule() {
}
InlineSVGModule.forRoot = function (config) {
return {
ngModule: InlineSVGModule,
providers: [
{ provide: InlineSVGConfig, useValue: config }
]
};
};
InlineSVGModule.ɵfac = function InlineSVGModule_Factory(t) { return new (t || InlineSVGModule)(); };
InlineSVGModule.ɵmod = i0.ɵɵdefineNgModule({ type: InlineSVGModule });
InlineSVGModule.ɵinj = i0.ɵɵdefineInjector({ imports: [InlineSVGComponent] });
return InlineSVGModule;
}());
export { InlineSVGModule };
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InlineSVGModule, [{
type: NgModule,
args: [{
imports: [InlineSVGDirective, InlineSVGComponent],
exports: [InlineSVGDirective],
}]
}], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(InlineSVGModule, { imports: [InlineSVGDirective, InlineSVGComponent], exports: [InlineSVGDirective] }); })();