open component as modal angular code example Example: ways to open modal in angular Click to copydocument.getElementById("openModalButton").click();