腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(4990)
视频
沙龙
1
回答
Angular路由器链接在模式
中
打开,而不是在新页面
中
打开
angular
我创建了一个
组件
模式,它应该显示更多的数据,但问题是,当我单击特定的行时,它会将我带到另一个页面,我希望将其显示为模式,而不是在新页面
中
。这是我的routing.module.js { path: 'sidebarComp', component: SidebarComponent } 有谁知道如何显示新
组件
而不重定向到新页面?
浏览 6
提问于2020-03-26
得票数 0
1
回答
如
何在
ngx-bootstrap
Modal
中
使用
angularjs
升级
组件
?
angularjs
、
angular
、
angular-upgrade
、
ngx-bootstrap-modal
我有一个混合的Angular应用程序(Angular 8.2.14和
angularjs
1.8.0),它
使用
Valor Software的
ngx-bootstrap
(5.3.2) modals。我仍然有几个
组件
是
angularjs
,而且足够复杂,我不能很快地
升级
它们。 我已经正确地引导了我的应用程序,这样通常
升级
和降级的
组件
就可以正常工作了。有一种情况下这种情况没有发生,我认为这是因为
ngx-bootstrap
的BsModalSer
浏览 40
提问于2020-12-11
得票数 2
1
回答
Angular Bootstrap模式在Ngfor
中
不起作用
javascript
、
angular
、
bootstrap-modal
、
angular8
、
ngfor
我
使用
的是Angular 8,在这里我需要在NgFor循环中做一个弹出窗口,数据是在弹出模式下绑定的,但相同的数据在引导模式下是连续绑定的… 我的Html是 <tr *ngFor="let law of="myLargeModalLabel" aria-hidden="true"> <div class="
modal
-cont
浏览 24
提问于2021-02-01
得票数 2
3
回答
如何从另一个
组件
打开一个模式?
twitter-bootstrap
、
angular
、
ngx-bootstrap
我试图做的是从另一个
组件
打开一个模式,但是当component1.html加载时,我总是得到这个错误TypeError: Cannot create property 'validator' on stringcomponent1.html <button type="button" class="btn btn-outline-primary btn-lg" (click)="
modal
.showModal<child-
modal
#childModal &
浏览 3
提问于2017-10-12
得票数 11
回答已采纳
2
回答
如
何在
组件
中
引用ng-模板
javascript
、
html
、
angular
、
ng-template
如
何在
我的<ng-template #
modal
_Template>文件
中
引用component.ts。以前,我通过html文件上的一个按钮调用了一个模式,并
使用
了这个<button type="button" class="btn btn-primary" (click)="openModal(
modal
_Template)">Create template
modal
</button&
浏览 2
提问于2019-10-11
得票数 1
回答已采纳
2
回答
角5想要从ngx引导模式得到值到一个
组件
。
angular
、
angular5
我希望从ngx引导模式获得一个值到父
组件
(从该模型被调用/打开的位置)。情况是,单击父
组件
中
的超链接将打开一个模式。当我单击模式
中
的submit按钮时,数据将传递给父
组件
。在父
组件
.ts文件
中
,我编写了以下内容:在模态.ts文件<em
浏览 0
提问于2018-12-28
得票数 0
7
回答
找不到模块‘ngx-引导’
node.js
、
angular
、
typescript
、
npm
、
ngx-bootstrap
例如:生成“无法找到模块‘ngx-引导程序’”。移除引用并检查快速修复时,只需将引用替换为:显然,这并不理想,因为它们应该可以通过ngx引导程序获得,而不需要指定文件夹,而且我需要查看几十个
组件</em
浏览 0
提问于2020-04-07
得票数 37
9
回答
ngx-引导模式:如何从一个模式
中
获得返回值?
angular
、
modal-dialog
、
bootstrap-modal
、
ngx-bootstrap
、
confirm-dialog
在我的角4应用程序
中
,让我们假设我在一个服务
中
。在某种程度上,我想向用户请求确认,目前我只
使用
一个confirm(...)请求:如果我想用两个按钮“是”或“否”显示一个
ngx-bootstrap
模态,并得到类似的结果,该怎么办? 编辑:在我的例子
中
,我通过玩主题来解决我的问题。
浏览 16
提问于2017-09-25
得票数 48
回答已采纳
6
回答
如何将数据从ModalService传递到
组件
angular
、
typescript
、
ngx-bootstrap
、
ngx-bootstrap-modal
我正在尝试
使用
ngx-bootstrap-
modal
将数据从一个模态服务传递到一个模态
组件
。显示了以下内容:但它并没有显示ModalContentComponent实际上是如何
使用
该状态的我在调试器
中
尝试过,但我从未看到我的
组件
获得这些数据。 如何从
组件
访问它?
浏览 18
提问于2018-02-07
得票数 6
2
回答
如何从角度8的其他部件打开引导模态窗口?
javascript
、
angular
、
typescript
、
bootstrap-4
、
modal-dialog
现在,我想从一个不同的
组件
打开同一个模式窗口,我尝试了一些东西,但是它不起作用,下面是我的代码, <button type="button" class="btn btn-primary" (click)="openModal()">Sign In</button> <div id="signInModal" class="
modal
fade m-5" role
浏览 6
提问于2020-10-16
得票数 3
回答已采纳
1
回答
正在引导导入所有
组件
吗?
angular
、
ng-bootstrap
、
ngx-bootstrap
@NgModule({ imports: [ ...ng引导是否导入了所有的
组件
,
如
ngb-旋转木马、ngb-进度条等等,即使我没有
使用
它?还有另一个引导库,,它会导入以下每个
组件
@NgModule({ imports: [ModalModule.forRoot
浏览 6
提问于2017-10-19
得票数 3
回答已采纳
1
回答
如
何在
没有循环依赖的情况下从另一个模态
组件
内部打开一个模态
组件
?
modal-dialog
、
bootstrap-modal
、
ngx-bootstrap
我有两个
ngx-bootstrap
模态创建作为独立的
组件
(不
使用
模板变量)-登录模态和注册模态。每个通道都有单独的
组件
,它们位于我的共享模块
中
,可以从其他模块调用。但问题是,有一个选项可以让这些模态相互呼叫-您可以单击登录模式
中
的按钮,该按钮必须带给您注册模式,反之亦然。当我尝试
使用
BsModalService执行此操作时,会出现循环依赖错误,因为我已经将登录
组件
导入了注册
组件
中
,并将注册
组件
导入了
浏览 0
提问于2019-06-07
得票数 1
9
回答
如何对ngx-引导模态进行中心化
css
、
angular
、
centering
、
ngx-bootstrap
、
ngx-bootstrap-modal
试图
使用
这样的CSS对这个进行居中,但它不起作用: display: flex; align-items:center;但是在dev工具
中
,我可以添加这样的CSS: top: 50%因此,至少它是垂直居中的,但是这是在dev工具
中
,并且在.
modal
.dialog我希望通过提供输入消息和添加一个是/否对话框,并输出用户选择(
使用</
浏览 13
提问于2017-10-23
得票数 17
回答已采纳
1
回答
模块'DynamicTestModule‘导入了意外的值'ModalModule’
angular
、
jestjs
、
ngx-bootstrap
我正在尝试测试MyComponent,它
使用
了
ngx-bootstrap
的模式指令(就像在https://valor-software.com/
ngx-bootstrap
/#/modals#directive-section
组件
本身可以完美地工作,但是当我尝试测试它时,我得到了这个错误: Unhandled Promise rejection: Unexpected value 'ModalModule' importedfixture = TestBe
浏览 75
提问于2021-03-23
得票数 0
1
回答
ngx-bootstrap
模式不检测我的
组件
属性
angular
、
bootstrap-modal
、
ngx-bootstrap
我正在
使用
ngx-bootstrap
for bootstrap 3.3.7,目前正在尝试让模态服务完全工作。将打开模式对话框,但显示的唯一内容是静态内容。我传递给服务的动态内容都不起作用,主要是因为bsModalRef似乎没有获取我的
组件
属性。下面是
Modal
组件
:imp
浏览 0
提问于2017-07-29
得票数 1
1
回答
角分量间的圆依赖关系
angular
、
typescript
、
popup
我得到了循环依赖,因为我
使用
组件
到另一个
组件
中
,我有四个不同的
组件
,如下所示, import {BsModalService, ModalDir
浏览 2
提问于2019-05-03
得票数 1
3
回答
我在“ngx-引导”和“@ng-引导/ng-引导”之间混淆。
twitter-bootstrap
、
angular
、
typescript
、
bootstrap-4
我计划在我的项目中
使用
带有角4的引导带4,但我在npm install --save @ng-bootstrap/ng-bootstrap和npm install
ngx-bootstrap
--save
浏览 7
提问于2017-11-04
得票数 4
回答已采纳
3
回答
ngx引导模式未正确插入
angular
、
ngx-bootstrap
、
ngx-bootstrap-modal
我试图
使用
这个'BsModalService‘来打开一个模式,但是我得到了下面的错误。这是我的
组件
。/providers/window.service"; import { BsModalRef} from '
ngx-bootstrap
/
modal
/bs-
modal</em
浏览 18
提问于2018-02-16
得票数 0
1
回答
使用
AngularJS
显示引导带3模式
angularjs
、
bootstrap-modal
我
使用
的是
AngularJS
1.5.0和Bootstra3.3.6。$("#myModal").
modal
()与JQuery一起工作,但我需要让它与
AngularJS
一起工作。
浏览 4
提问于2019-09-27
得票数 1
回答已采纳
3
回答
错误TypeError:在具有角6的ngx引导程序
中
,无法读取null属性'createText‘
angular
、
twitter-bootstrap
、
typescript
、
ngx-bootstrap
我想打开ngx-引导模式从一个不同的
组件
使用
@ViewChild在角6,但我得到了这个错误。 在in元素
中
,这个标记也是可见的。<bs-
mod
浏览 0
提问于2018-10-11
得票数 4
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券