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
you can use the action on close button
Add Expense
and in your controller you can add this line after the action you use
this.closeAddExpenseModal.nativeElement.click();
you will need to add this imports to your controller
import { ViewChild, ElementRef} from '@angular/core';
you will need also to define closeAddExpenseModal
@ViewChild('closeAddExpenseModal') closeAddExpenseModal: ElementRef;