As mentioned in bootstrap modal docs we can handle outside modal click with hide.bs.modal
. Most of the examples present on the internet are with jquery. Can anyone help me to achieve this in Angular?
What I want to achieve is when a bootstrap modal is closed by clicking outside the modal. I want to call a function that will make an API call to the backend and update the data.
Like (menuOpened) and (menuClosed) in mat-menu of angular material, It would really be helpful to achieve show.bs.modal
& hide.bs.model
in a similar fashion for Angular?