I do not want to use angular2-bootstrap or ng2-bs3-modal as suggested in the questions/answers Angular 2 Bootstrap Modal and Angular 2.0 and Modal Dialog
Now. I kno
I have done like this and it works for me perfectly.
var element = document.getElementById("CloseButton") as any;
element.click(); Where my CloseButton is bootstrap close button