Have you heard the news that Bootstrap 5 has been released? To open a modal using JavaScript, the official website provides the following code:
var myModal = new bootstrap.Modal(document.getElementById('myModal'), options)
myModal.toggle()
However, a problem arises for me as I am developing a front-end application using Angular 11 strict mode. TypeScript does not allow me to use new bootstrap.Modal
since it does not exist in this context. Can you suggest any solutions?