📜  角度输出向父级发送点击事件 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.901000             🧑  作者: Mango

代码示例1
export class ChildComponent {
 @Output() clickEvent: EventEmitter = new EventEmitter();
  
 childClick() {
    this.clickEvent.emit();
 }
}