TemplatePortalDirective constructor

TemplatePortalDirective(
  1. TemplateRef templateRef,
  2. ViewContainerRef viewContainerRef
)

Implementation

TemplatePortalDirective(
    TemplateRef templateRef, ViewContainerRef viewContainerRef)
    : super(templateRef, viewContainerRef) {
  // TODO(google): Consider a better or standard pattern for this.
  scheduleMicrotask(() {
    _ready.add(this);
  });
}