Configuring Modals and Alerts using Dynamic Components in Angular