<button #tooltipBtn nz-button nzTooltipTitle\="prompt text" nzTooltipPlacement\="topLeft" nz-tooltip\> Align edge / 边缘对齐 </button\> <button type="button" (click)="tooltipBtn.show()" nz-button >Click</button>
import { NzTooltipDirective } from 'ng-zorro-antd' @ViewChild(NzTooltipDirective, { static: false }) dirRef?: NzTooltipDirective; hide() {this.dirRef.hide()}