ngOnInit method

  1. @override
void ngOnInit()

Executed after the first change detection run for a directive.

See OnInit for a full description.

Implementation

@override
void ngOnInit() {
  _disposer.addDisposable(_domService.scheduleRead(_readElement));
  _disposer.addDisposable(_domService.trackLayoutChange(
      () => '$currentClientSize $currentScrollSize', (dynamic _) {
    _readElement(windowResize: true);
    _refreshController.add(true);
  }, runInAngularZone: true));
}