Last active
August 13, 2023 09:00
-
-
Save GreenFlag31/3f058e6c54826738384f03651a82a246 to your computer and use it in GitHub Desktop.
app component class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openModalComponent() { | |
this.modalService.open(ModalContentComponent, { | |
animations: { | |
modal: { | |
enter: 'enter-scaling 0.3s ease-out', | |
leave: 'fade-out 0.3s forwards', | |
}, | |
overlay: { | |
enter: 'fade-in 1s', | |
leave: 'fade-out 0.3s forwards', | |
}, | |
}, | |
size: { | |
width: '40rem', | |
}, | |
}); | |
} | |
close() { | |
this.modalService.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment