Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular output send click event to parent

export class ChildComponent {
 @Output() clickEvent: EventEmitter<MouseEvent> = new EventEmitter();
  
 childClick() {
	this.clickEvent.emit();
 }
}

<!-- on the parents HTML template -->
<app-child (childClick)="parentClick()"></app-child>
 
PREVIOUS NEXT
Tagged: #angular #output #send #click #event #parent
ADD COMMENT
Topic
Name
3+7 =