📜  veu js vs angular vs react特性 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:27.007000             🧑  作者: Mango

代码示例1
`,
})
export class UserListComponent {
  @Output() selectUser = new EventEmitter<{ id: string; name: string }>()
  @Inout() users: { id: string; name: string }[]

  onSelectUser(id: string) {
    this.selectUser.emit(this.users.find(u => u.id === id))
  }
}