import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'dataset-profile-gui-editor', templateUrl: './dataset-profile-gui-editor.component.html', styleUrls: ['./dataset-profile-gui-editor.component.css'] }) export class DatasetProfileGUIEditorComponent implements OnInit { constructor() { } @Input() profile: any; @Output() notifyClick: EventEmitter = new EventEmitter(); ngOnInit() { } goToMain(){ this.notifyClick.emit(1); } }