I have problem with dynamic dialog in PrimeNg.
Is there any option to handle other actions on a dialog besides close?
For example, in Kendo-UI dialog example I can define content.instance of the component and I can access the fields of the component instance opened as dialog.
const ref = this.dialogService.open(ResourceComponent, {
data: {
logicFormGroup: this.formGroup,
resources: this.resources$
}, width: '700px'
});
ref.onClose.subscribe((back: ResourceModel) => {
console.log(back);
});
ref.addPersonEmitter.sub(....)
in component ResourceComponent
@Output() addPersonEmitter = new EventEmitter();