@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>
44 lines (39 loc) • 1.72 kB
JavaScript
import * as i0 from '@angular/core';
import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
class NgDocLetContext {
constructor(internalDirectiveInstance) {
this.internalDirectiveInstance = internalDirectiveInstance;
}
get $implicit() {
return this.internalDirectiveInstance.ngDocLet;
}
get ngDocLet() {
return this.internalDirectiveInstance.ngDocLet;
}
}
class NgDocLetDirective {
constructor() {
this.viewContainer = inject(ViewContainerRef);
this.templateRef = inject(TemplateRef);
this.viewContainer.createEmbeddedView(this.templateRef, new NgDocLetContext(this));
}
static ngTemplateContextGuard(_dir, _ctx) {
return true;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgDocLetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: NgDocLetDirective, isStandalone: true, selector: "[ngDocLet]", inputs: { ngDocLet: "ngDocLet" }, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NgDocLetDirective, decorators: [{
type: Directive,
args: [{
selector: '[ngDocLet]',
standalone: true,
}]
}], ctorParameters: () => [], propDecorators: { ngDocLet: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { NgDocLetContext, NgDocLetDirective };
//# sourceMappingURL=ng-doc-ui-kit-directives-let.mjs.map