UNPKG

@ng-doc/ui-kit

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

31 lines (27 loc) 881 B
import { Injector } from '@angular/core'; import { NG_DOC_COMPONENT_CONTEXT } from '@ng-doc/ui-kit/tokens'; import { PolymorpheusComponent } from '@tinkoff/ng-polymorpheus'; // eslint-disable-next-line @typescript-eslint/ban-types class NgDocComponentContent extends PolymorpheusComponent { constructor(component, injectorRef) { super(component); this.component = component; this.injectorRef = injectorRef; } createInjector(injector, useValue) { return Injector.create({ parent: this.injectorRef || injector, providers: [ { provide: NG_DOC_COMPONENT_CONTEXT, useValue, }, ], }); } } /** * Generated bundle index. Do not edit. */ export { NgDocComponentContent }; //# sourceMappingURL=ng-doc-ui-kit-types.mjs.map