ngx-bootstrap
Version:
Angular Bootstrap
28 lines • 829 B
JavaScript
import { Directive, Input, ViewContainerRef } from '@angular/core';
export class NgTranscludeDirective {
constructor(viewRef) {
this.viewRef = viewRef;
}
set ngTransclude(templateRef) {
this._ngTransclude = templateRef;
if (templateRef) {
this.viewRef.createEmbeddedView(templateRef);
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
get ngTransclude() {
return this._ngTransclude;
}
}
NgTranscludeDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngTransclude]'
},] }
];
NgTranscludeDirective.ctorParameters = () => [
{ type: ViewContainerRef }
];
NgTranscludeDirective.propDecorators = {
ngTransclude: [{ type: Input }]
};
//# sourceMappingURL=ng-transclude.directive.js.map