angular - 模态自动关闭 - Angular
问题描述
<div class="row-4">
<button (click)="open(content)">Open modal</button>
<ng-template #content>
<p>HI</p>
</ng-template>
</div>
open(template: TemplateRef<any>) {
this.modalRef = this.modalService.show(template, { class: 'modal-sm' });
}
显示模式 1 秒后,它会将我重定向到另一个视图。
解决方案
推荐阅读
- python - Pandas:创建一个班次指标,省略组的第一个值
- javascript - 结束日期必须小于开始日期,Vuelidate 和 VueJs
- windows - 命令提示符作为管理员使用实际用户的 %username% 变量
- julia - `|> gpu` 在 Flux.jl 中是什么意思
- angularjs - Angular (1.x) - 以编程方式从代码访问 NG-REPEAT
- python - 函数内部的 Tkinter 可滚动框架
- swift - 基于 SwiftUI 变化的动画 NSWindow 的大小变化
- excel - VBA:如何检查 Filter Criteria2 是否存在?
- c++ - 是否可以在二进制图像中使用 openCV findChessboardCorners 函数?
- apache-kafka - KafkaTimeoutError:60.0 秒后无法更新元数据,Python 脚本