How to build a reusable Modal Overlay/Dialog Using Angular CDK You can find the demo for this repo here and the accompanying article here.