Skip to content
@ng-doc/ui-kit / Class

NgDocSelectionHostDirective

Tracks which of its ngDocSelectionOrigin elements is selected, so that an ng-doc-selection inside it can highlight that element.

Decorators
@Directive
Selectors
[ngDocSelectionHost]
DeclarationTypeScript
@Directive({ … })
export class NgDocSelectionHostDirective { … }

Members

Properties

1
selected: Signal<HTMLElement | undefined>
readonly

Element of the selected origin, or undefined when none is selected.

Methods

2
(…): void

Updates the selection after an origin changed its state or went away.

(…): void

Selects an element that cannot carry ngDocSelectionOrigin, because Angular does not render it: for example a tab in the HTML of a generated page.

Symbol
Kind
Class
Decorators
@Directive
Selectors
[ngDocSelectionHost]
Scope
@ng-doc/ui-kit
Edit this page