Open srizzon opened 2 weeks ago
In your example when you open a dialog popover
is closed(and destroyed), because of this there are no subscribers to the Observable, which leads to non-obvious behavior. Modal has ref to destroyed component, without @output subscribers.
Reproduction link
https://stackblitz.com/edit/angular-yqmg18
Steps to reproduce
ng-template
.@Output
event in thenzOnOk
method from the modal.@Output
event is not emitted as expected when the modal is inside a component that is inside ang-template
.What is expected?
The
@Output
event from thenzOnOk
should be emitted correctly even when the modal is inside a component that is inside ang-template
.What is actually happening?
The
@Output
event does not trigger when the modal is placed inside a component within ang-template
.