ngAfterViewInit method

  1. @override
void ngAfterViewInit()

Implementation

@override
void ngAfterViewInit() {
  // We have to wait until the view is inited to have elementRef
  _element = _referenceDirective?.elementRef as HtmlElement? ?? _element;
  _updateSource();
}