-
2 votesanswersviews
ngx-bootstrap在同一页面上有多个可拖动的模态(非嵌套)
我是ngx-bootstrap的新手..使用ngx-bootstrap模态.. 使用子模态组件(@ViewChild('childModal')childModal:CommonModalComponent) 我能够创建简单的模态 . 要求是在同一页面上显示多个可拖动的模态 . 例如 . 页面上的两个按钮 . button1和button2 . 如果我点击button1而不是相应的modal-1... -
4 votesanswersviews
如何使ngx-bootstrap模态居中
尝试使用像这样的CSS来居中这个ngx-boostrap modal但它不起作用: .modal.fade.in{ display: flex; justify-content: center; align-items: center; } 但是在开发工具中,我可以像这样添加CSS: .modal.dialog{ top: 50% } 所以至少它是垂直居中的,但这是在开发工具中... -
1 votesanswersviews
Angular 6 - 来自bsmodal的http帖子
我正在研究我的第一个有角度的应用程序,我正在尝试将产品对象发布到我的api . 我有一个组件列出了所述api上的所有产品 import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ToastrService } from 'ngx-to...