DeferredContentDirective constructor

DeferredContentDirective(
  1. ViewContainerRef _viewContainer,
  2. TemplateRef _template,
  3. DeferredContentAware parent,
  4. ChangeDetectorRef changeDetector,
)

Implementation

DeferredContentDirective(
  this._viewContainer,
  this._template,
  DeferredContentAware parent,
  ChangeDetectorRef changeDetector,
) {
  _disposer.addStreamSubscription(parent.contentVisible.listen((value) {
    _visible = value;
    _setVisible();
    changeDetector.markForCheck();
  }));
}