Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <foot-play-edit-perfil-modal (sendValue)="receiveMessage($event)"
- [player]="player" [showModalEdit]="showModalEditPerfil"></foot-play-
- edit-perfil-modal>
- receiveMessage($event) {
- console.log('teste',$event)
- }
- @Output() sendValue = new EventEmitter<any>();
- ...
- sendMessage() {
- this.sendValue.emit('teste')
- }
- ...
- updateProfile(){
- this.sendMessage()
- }
- <div class="perfil-modal__buttons">
- <button class="btn btn--primary" (click)="updateProfile()">Salvar</button>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement