I have a component lets app-main which I'm already using it another component with its event emitter:
<app-dashboard (dateFrom)=OnDateFrom($event) ></app-dashboard>
In <app-dashboard> I have a function which is like this:
@Output() weatherResult= new EventEmitter<any>();
SendWeatherResult(){
this.weatherResult.emit(results);
}
Now I need to call the SendWeatherResult function in my component
<app-dashboard (dateFrom)=OnDateFrom($event) //here i need to call this function></app-dashboard>
i want to call SendWeatherResult function in my app-main