1 import {AfterViewInit, Component, ViewChild, ViewContainerRef} from "@angular/core";
2 import {BehaviorSubject} from "rxjs";
5 selector: 'tooltip-template',
7 <div class="custom-tooltip-template-container">
8 <ng-container #templateContainer></ng-container>
12 export class TooltipTemplateComponent implements AfterViewInit {
13 @ViewChild('templateContainer', {read: ViewContainerRef, static: true}) public container: ViewContainerRef;
15 public viewReady: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
17 ngAfterViewInit() : void {
18 this.viewReady.next(true);