Last active
April 6, 2022 13:25
-
-
Save MartinhoMCM/6aae94f9c323d3afdd53c36180891091 to your computer and use it in GitHub Desktop.
filho.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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