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

NgDocAutofocusDirective

Focuses the host when it is created, if the host can take keyboard focus.

Decorators
@Directive
Selectors
[ngDocAutofocus]
Implements
OnInit
DeclarationTypeScript
@Directive({ … })
export class NgDocAutofocusDirective implements OnInit { … }

Members

Properties

1
selectAll: InputSignal<boolean>
readonly input()

Selects the whole value of an input host after focusing it.

Methods

1
(): void
implements OnInit
—
Symbol
Kind
Class
Decorators
@Directive
Selectors
[ngDocAutofocus]
Implements
OnInit
Scope
@ng-doc/ui-kit
Edit this page