Looking at the bootstrap documentation I saw that it has a specific method to hide the modal via jquery:
.modal('hide')
$('#myModal').modal('hide')
The problem is that I use angular, so I need a way to call this function through typescript. Using jquery in my scenario is not feasible and I need to remove it through typescript because it will only be closed after a successful http request.