Usually we use data-target=\"#myModal\"
in the to open a modal. Right now I need use codes to control when to open the modal.
I do not feel there is anything wrong with using JQuery with angular and bootstrap, since it is included when adding bootstrap.
import {.......
declare var $: any;
@component.....
showErrorModal() {
$("#errorModal").modal('show');
}