Directive that allows to pass the templateRef associated to a ng-content to a store.
The input of the directive is a WritableSignal<{children: SlotContent
• T extends object
new ContentAsSlotDirective<
T
>():ContentAsSlotDirective
<T
>
auContentAsSlot:
WritableSignal
<object
,object
>
optional
children:SlotContent
<T
>
templateRef:
TemplateRef
<any
>
ngOnInit():
void
void
OnInit.ngOnInit
• Props extends Record
<string
, any
>
new SlotDirective<
Props
>():SlotDirective
<Props
>
SlotDirective
<Props
>
props:
Props
slot:
SlotContent
<Props
>
ngOnChanges(
changes
):void
• changes: SimpleChanges
void
OnChanges.ngOnChanges
ngOnDestroy():
void
void
OnDestroy.ngOnDestroy