Closed liuchuancong closed 5 years ago
export class PopoverComponent implements AfterContentInit { @ViewChild(TemplateRef) templateRef: TemplateRef;
@ViewChild('focusTrapElement') private _focusTrapElement: ElementRef; constructor(private _elementRef: ElementRef) { } ngAfterContentInit() { } open() { } close() { } toggle() { console.log('toggle'); }
} in close method
export class PopoverComponent implements AfterContentInit { @ViewChild(TemplateRef) templateRef: TemplateRef;
} in close method