7
发生错误:@Output未初始化
我正在为经理开发一个角度应用程序,以跟踪他们的团队,并且遇到了@Output错误: An error occurred: @Output deleteMeeting not initialized in 'MeetingItemComponent'. 我有一个会议组件,生成一个MeetingItem组件列表。当用户单击不同的按钮(编辑,删除,显示详细信息)时,我想执行操作。 这是我的父级会议模板: <div class="meeting__list" [@newMeeting]="meetings.length"> <app-meeting-item *ngFor="let meeting of meetings" [meeting]="meeting" (deleteMeeting)="deleteMeeting($event)" (openMeetingDialog)="openMeetingDialog($event)" (messageClick)="openMessage($event)" ></app-meeting-item> </div> 我的MeetingItem模板(仅此帖子中涉及的部分): <span class="meeting__actions"> <mat-icon *ngIf="meeting.message" (click)="onMessageClick(meeting)" matTooltip="Read the message" matTooltipPosition="above" class="icon--notes">notes</mat-icon> <mat-icon (click)="onOpenMeetingDialog(meeting)" matTooltip="Edit this meeting" matTooltipPosition="above" class="icon--edit">edit</mat-icon> <mat-icon (click)="onDeleteMeeting(meeting.id)" matTooltip="Delete this meeting" matTooltipPosition="above" …