Modal in Angular

How to create modal in Angular?

This is old way of creating modal it doesn’t mean i am creating modal in Angular 1. I mean there is better way to create modal. When application loads the modal will also loads in DOM. We are just showing and hiding the modal on click. There are technique where we can load modal(Component) dynamically i will created dynamically loading component(Modal) in another post. In this modal code you can configure title and modal size. If you do not pass any argument in an object it will show the modal with default settings. If you want to advanced modal post Click here.

Demo Githhub Stackblitz

Leave a Reply

Your email address will not be published. Required fields are marked *