ngAfterViewInit method

  1. @override
void ngAfterViewInit()

Implementation

@override
void ngAfterViewInit() {
  // Focusing the active item happens after the view initializes to wait for
  // the `focusableItems` view children to be set.
  if (activateFirstItemOnInit || activateLastItemOnInit) _focusActiveItem();
}