Import
import { WrButton } from 'ngwr/button';
import { WrAutofocus } from 'ngwr/directives';
import { WrInput } from 'ngwr/input';Usage
<input wrAutofocus placeholder="Focused on init" />
<input [wrAutofocus]="shouldFocus()" />API
| Name | Description | Type | Default |
|---|---|---|---|
[wrAutofocus] | Focus host on init, or whenever the bound expression becomes truthy. | boolean (default true) | — |