Main motivation is to support multi-instance usage of CpsDialogService. We might need multiple instances, as some services injected in the component that is open as a dialog might not be provided at the root level.
all the open dialogs are tracked in the top-most instance of CpsDialogService
if the instance is destroyed and it was the top-most instance, all the dialogs are also destroyed
The inspiration for the solution was taken from Angular Components lib - CDK dialog and Material dialog
Main motivation is to support multi-instance usage of
CpsDialogService
. We might need multiple instances, as some services injected in the component that is open as a dialog might not be provided at the root level.CpsDialogService
The inspiration for the solution was taken from Angular Components lib - CDK dialog and Material dialog