I have a button, on the click of which I am opening a bootstrap modal pop-up. The modal pop-up contains some field with a submit button. I want to close the pop-up only when I a
With your id="AddExpense", you can close the modal with the below code anywhere in your typescript.
document.getElementById('AddExpense').click(); // where you want to dismiss your modal
document.getElementById('AddExpense').click();