Use Tippy.js in Angular

前端 未结 2 883
别那么骄傲
别那么骄傲 2021-01-19 16:26

I have a directive with the following code

import { Directive, Input, OnInit, ElementRef, SimpleChanges, OnChanges } from \'@angular/core\';
import tippy fr         


        
2条回答
  •  走了就别回头了
    2021-01-19 16:45

    You can also use the lifecyle hook ngAfterViewInit then you don't need the setTimeout.

    public ngAfterViewInit() {
        this.loadTippy();
    }
    

提交回复
热议问题