Dialogs can be created dynamically with any component as the content using a DialogService along with a DynamicDialog component. Ideal location of a DynamicDialog is the main template so that it can be used by any component within the application.