stbui / angular-material-app

基于最新Angular 11框架与Material 2技术的web中后台前端应用框架。
https://stbui.github.io/angular-material-app/index.html
MIT License
517 stars 175 forks source link

how close clender with popover #37

Closed liuchuancong closed 5 years ago

liuchuancong commented 6 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