autoFocus property

  1. @Input()
set autoFocus (bool? value)

Enables the auto focus directive so that it can be conditionally applied.

This value should not change during the component's life.

Implementation

// TODO(google): Change to an attribute.
@Input()
set autoFocus(bool? value) {
  _autoFocus = value ?? false;
}