Bootstrap

API slot

ContentAsSlotDirective

class

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}>.

Type Parameters

T extends object

Implements
Constructors
new ContentAsSlotDirective

new ContentAsSlotDirective<T>(): ContentAsSlotDirective<T>

Returns

ContentAsSlotDirective<T>

Properties
auContentAsSlot

auContentAsSlot: WritableSignal<object, object>

Type declaration
children?

optional children: SlotContent<T>


templateRef

templateRef: TemplateRef<any>

Methods
ngOnInit

ngOnInit(): void

Returns

void

Inherit Doc
Implementation of

OnInit.ngOnInit


SlotDirective

class
Type Parameters

Props extends Record<string, any>

Implements
Constructors
new SlotDirective

new SlotDirective<Props>(): SlotDirective<Props>

Returns

SlotDirective<Props>

Properties
props

props: Props


slot

slot: SlotContent<Props>

Methods
ngOnChanges

ngOnChanges(changes): void

Parameters

changes: SimpleChanges

Returns

void

Inherit Doc
Implementation of

OnChanges.ngOnChanges


ngOnDestroy

ngOnDestroy(): void

Returns

void

Inherit Doc
Implementation of

OnDestroy.ngOnDestroy