DEV Community

Discussion on: How to create a custom modal in angular

johnbwoodruff profile image
John Woodruff

Great post! I'm sure you know this but for those reading this that don't know, you can also use @angular/cdk (the Angular Component Dev Kit) and use their Overlay service to handle a lot of this stuff for you, including some incredibly powerful positioning and scroll behavior APIs that you won't have to implement yourself. (such as if you wanted to attach an overlay to an element rather than positioning it globally)