317得票42回答
如何将Bootstrap添加到Angular CLI项目中

我们希望在使用angular-cli 1.0.0-beta.5(带有node v6.1.0)生成的应用中使用bootstrap 4(4.0.0-alpha.2)。在使用npm获取bootstrap及其依赖项后,我们的第一种方法是将它们添加到angular-cli-build.js中:'boot...

288得票9回答
“ng-bootstrap”和“ngx-bootstrap”有什么区别?

什么是ng-bootstrap和ngx-bootstrap之间的区别?它们彼此相关吗?还是它们只是并行的实现? 有人两者都使用过,可以给出/解释两者的优缺点吗? 我指的是ng-bootstrap.github的ng-bootstrap,以及valor-software-ngx-bootstra...

50得票9回答
ngx-bootstrap模态框:如何从模态框中获取返回值?

在我的Angular 4应用程序中,假设我在一个服务内部。 在某个时刻,我想向用户请求确认,目前我只是使用confirm(...)请求来实现:const result = confirm('Are you sure?'); 如果我想展示一个带有两个按钮"Yes"或"No"的ngx-boots...

40得票3回答
ngx-bootstrap 和 ng2-bootstrap 有什么区别?

我正在使用Bootstrap(UI)和Angular 2制作项目。我对这两个东西都很陌生。我的朋友建议我使用ng2 bootstrap,但是ngx bootstrap和ng2 bootstrap让我非常困惑。每次我搜索ng 2 bootstrap时,都会跳到ngx bootstrap。这两者之...

39得票7回答
找不到模块“ngx-bootstrap”

我的应用程序在使用ngx-bootstrap时出现了问题,除非指定路径,否则它现在无法检测到该模块。 例如:import { BsModalService, BsModalRef } from 'ngx-bootstrap'; 会产生错误信息 "找不到模块 'ngx-bootstrap'"。 ...

28得票2回答
如何在Angular 5中使用ngx-bootstrap的Bootstrap导航栏?

在ngx-bootstrap组件列表中没有Bootstrap导航栏。请帮我实现它。

20得票9回答
Angular中如何在canDeactivate守卫服务中使用模态对话框处理未提交更改(表单脏)问题

在我的Angular 4应用程序中,我有一些带有表单的组件,就像这样:export class MyComponent implements OnInit, FormComponent { form: FormGroup; ngOnInit() { this.form = ...

17得票9回答
如何将ngx-bootstrap模态框居中显示

尝试使用以下CSS将此ngx-boostrap模态框居中,但它无法生效:.modal.fade.in{ display: flex; justify-content: center; align-items: center; } 但是在开发工具中,我可以像这样添加CSS:.moda...

14得票1回答
使用ngx-bootstrap modalService时如何添加自定义类

当查看 ngx-bootstrap 的源代码时: modal-options.class.ts 这里定义了一个可选的class属性,如下:class?: string;。 如何使用它? 是否可以添加自定义类,例如:this.modalService.config.class = 'my...

13得票7回答
"let-" 仅支持在 ng-template 元素上使用。

我正在尝试让我的前端应用程序(Angular5.1.x)运行,但由于模板解析错误而停止:"let-" is only supported on ng-template elements. (" </thead> <tbody> <template ngFor [n...