상위 구성 요소 클라이언트 목록이 있으며 클라이언트 ID를 전달하고 있습니다.한 구성 요소에서 다음 구성 요소로 각도 2 패스 이벤트
내가 바인딩 할 수 자식 생성자에export class ListComponents
public myformdata: number;
onClient(ID: number) {
console.log('loading ID', JSON.stringify(ID));
this.myformdata = (ID);
return this.myformdata;
}
}`
<a (click)="onClient($event, ID)">edit</a> View
ngOnChanges(): void {
}
export class ChldComponents{
constructor(public _dashlit: ListComponents) {
}
}