如何在angular 7中打开页面加载上的ng引导模式弹出窗口?
我无法在angular 7中的页面加载上显示ng引导模式弹出窗口 我尝试了下面的代码来打开它如何在angular 7中打开页面加载上的ng引导模式弹出窗口?,angular,bootstrap-modal,ng-bootstrap,modalpopup,Angular,Bootstrap Modal,Ng Bootstrap,Modalpopup,我无法在angular 7中的页面加载上显示ng引导模式弹出窗口 我尝试了下面的代码来打开它 openVerticallyCentered(content) { this.modalService.open(content, { centered: true });. this.modalService.open(content, { beforeDismiss: false }); } 您应该使用ViewChild decorator来访问init上的内容 在这里演示。 您应该使用Vie
openVerticallyCentered(content) {
this.modalService.open(content, { centered: true });.
this.modalService.open(content, { beforeDismiss: false });
}
您应该使用ViewChild decorator来访问init上的内容 在这里演示。
您应该使用ViewChild decorator来访问init上的内容 在这里演示。
看这个例子:看这个例子:这对我有用,谢谢这对我有用,谢谢