Using Angular CDK Portal to create a Modal

added by JavaScript Kicks
12/22/2019 10:29:32 AM

425 Views

The idea here is to have a single modal component at app.component level, control and inject templates to it using a custom service. This is a basic modal setup. The important part here is: Where cdkPortalOutlet is a directive that creates a slot where we'll dynamically attach templates to it.


0 comments