Issue
I'm new in angular and I want to make something like:
document.getElementById('div').style.display = 'none';
but I have an error enter image description here
I already deleted the ? mark and still not working its a click event that I want to make to add some animation to it
Solution
I think you can try this solution
showModal() {
const div = document.getElementById('modal');
if(div) {
div.style.display = 'none'
}
}
Answered By - Afif Alfiano
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.