I made a simple project on angular. In this project, I implemented a modal window.
My problem is that when the modal window is open, the function that closes the window does not work, but when I click on the button again to open the modal window, it closes. And even when I call the close function from the open function, it works too.
Why does the modal window close function not work?
Link to the created project