I am in LotoReviewTabComponent
and another component is imported here -
import { ReviewComponent } from './loto.reviewdoc.component';
My requirement is to call a method of LotoReviewTabComponent
inside ReviewComponent
.
Reason ReviewComponent
is imported in LotoReviewTabComponent
is - there is a modalreference call in LotoReviewTabComponent
as below -
Const reviewModal = this.modalService.open(ReviewComponent, ngbModalOptions);
reviewModal.componentInstance.fileName = fileName;
when some event is performed in that modal - reviewModal, a method in LotoReviewTabComponent
has to be called.
how can this be achieved?.