<button class="btn btn-primary btn-raised" (click)="openDaysModal()">Days Calculator</button>
public openDaysModal() {
this.bsModalRef = this.modalService.show(DaysCalcComponent, this.config);
}
MOdalComponent 关闭它
<button type="button" class="close pull-right" aria-label="Close" (click)="bsModalRef.hide()">
<span aria-hidden="true">×</span>
</button>