I have seperate child component which in ngx-bootstrap
modal here i have defined @input @output properties
@Input() public openFrom;
@Output() selecteduse = new EventEmitter<any>();
from parent component i’m opening this modal
const modalRef=this.modalServiceNew.show(ListComponent, { class: "model", ...this.modOpt })
but need some way to catch some event
previously through ng-bootstrap
was doing like this but in ngx-bootstrap
facing issues
for sending data :
modalRef.componentInstance.openFrom="form name";
for receiving event:
modalRef.componentInstance.selecteduse.subscribe(($e) => {
thid.func1();
})
Any solution Thanks