Hi Sunithra
Thank you for your update.
In a previous update, we provided Dialog component as an Angular service. But, you can achieve your requirement in a much easier way by using parent child interaction in Angular platform. You can render the Dialog as an Angular child component concept and use this child component page to multiple component pages using @Input and @Output decorator. @Input is used to pass data from parent to child and the @Output can be used when you want to pass data from the child to the parent.
In above sample,
- We have rendered the Common Dialog on a child Component page with the dropdown list component and assigned the value dynamically to other component pages.
- We have created ‘Parent’ and ‘Hello’ component page and used in Dialog component.
- We have shown the Dialog component when you click the button and shown the selected dropdown value in the corresponding component page.
Please check the above sample, if it doesn’t meet your requirement, kindly share more clear information about your requirement. This will help us provide a prompt solution
Regards,
Prince