Skip to content

Instantly share code, notes, and snippets.

@MartinhoMCM
Last active April 6, 2022 13:25
Show Gist options
  • Save MartinhoMCM/6aae94f9c323d3afdd53c36180891091 to your computer and use it in GitHub Desktop.
Save MartinhoMCM/6aae94f9c323d3afdd53c36180891091 to your computer and use it in GitHub Desktop.
filho.component.ts
import { Component, Input, OnInit, Output,EventEmitter } from '@angular/core';
@Component({
selector: 'app-filho',
templateUrl: './filho.component.html',
styleUrls: ['./filho.component.css']
})
export class FilhoComponent implements OnInit {
@Input() event;
@Output() outPutEvent =new EventEmitter();
world:string='Mundo do Desenvolvimento';
constructor() { }
ngOnInit() {
}
handleClicked(){
this.outPutEvent.emit('Martinho Mussamba');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment