Calling method on Template variables giving “undefined” exception
问题 I have one parent containing two child components. AppComponent NotificationsComponent MoveCopyComponent I want to emit values of MoveCopyComponent to NotificationComponent. Whenever I emit i get a property undefined in the NotificationComponent as shown in the screenshot <notifications #notificationsMenu role="menuitem" dropdown-item [caller]="'menu'" (acceptShareFromMenuEvent)="shareAcceptModal.PinItem($event)" (contentShareAccepted)="shareAcceptModal.hide()"> </notifications> And down