ng-bootstrap相关内容
我使用的是角度6和ng-bootstrap。我想更改 的背景色 .nav-fill .nav-link.active { margin-top: -1px; border-top: 2px solid #20a8d8; } .nav-pills .nav-link.active, .nav-pills .show > .nav
..
将ng-bootstrap安装到我的角度CLI(11.0.4)时出错。 时间 ng add @ng-bootstrap/ng-bootstrap 和我的日志文件 [error] Error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! W
..
是否可以将 ngBootstrap 模态作为共享组件并在其他组件中使用它的实例. 我想要一个提示用户删除记录的 Modal,并且我想在具有不同记录类型的多个组件中重复使用它. ngBootstrap 站点显示了一个“组件即内容"示例,但在该示例中,ModalComponent 似乎决定了是打开还是关闭 ModalContents.我希望能够从另一个(任意)组件打开/关闭模式的实例.
..
我想使用 Angular 4.0.0 和ng-bootstrap 1.0.0-beta.4 但它不显示模式. 应用模块.ts @NgModule({//...声明:[登录组件],进口:[//...NgbModule.forRoot()],entryComponents:[登录组件],})导出类 AppModule { } login.component.ts @Component({选
..
我有一个 Angular 4 页面,包括一个 ng-bootstrap 模式.我的代码如下所示. foo.html [...] foo.ts [...]构造函数(私有模式服务:NgbModal){}[...]打开(内容){让选项:NgbModalOptions = {尺寸:'lg'};this.modalService.open(内容,选项);}[...] 现在,当我单击按钮时,模式
..
我是 Angular 的相对初学者,我正在努力理解我从 ng-bootstrap 项目中阅读的一些源代码.可以在这里找到源代码. 我对 ngOnInit 中的代码很困惑: ngOnInit(): void {const inputValues$ = _do.call(this._valueChanges, value => {this._userInput = 值;如果(this.edit
..
我开始使用 ng-bootstrap Typeahead 组件,对此我非常满意. 我想要实现的一件事是让下拉项具有与输入字段相同的宽度,而默认行为则根据文本长度应用宽度.应该是基本的CSS... 我在 Plunker 中创建了一个基本的示例. 如您所见,应用的样式将被忽略: .dropdown-menu { 宽度:100%;} 如果我使用浏览器开发工具,并应用相同的应用程序.
..
我正在尝试使用 Angular 6 在 Bootstrap 导航栏中创建一个下拉项.当我在线测试时,我的代码正在运行:
Page1
..
如何在 ngFor 元素中声明一个动态模板引用变量? 我想使用ng-bootstrap中的popover组件,popover代码(带Html绑定)如下图: 你好,{{name}}!
..
所以我升级到 angular 4+,这样我就可以利用通用包进行服务器端渲染以实现 SEO 目的.我通过将其升级到 angular 4+ 并在 https://github.com/evertonrobertoauler/cli-universal-demo/commit/a2610286bd3db5d4f4cce4318d7c220c11963eb6. 我使用 ng-bootstrap 只有
..
在我的 angular 4 应用程序中,来自 ng-bootstrap 的 ngbDropdown-Element 不起作用. 我已经为这种情况安装了以下 npm 模块: "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.22","bootstrap": "4.0.0-alpha.6","bootstrap-sass": "^3.3.7",
..
ng-bootstrap typeahead 元素允许获取一组对象建议,然后选择一个,以便模型成为所选对象. 完整代码可以在这个 Plunkr 中看到.通过搜索美国州然后观察 model 输出来测试它. 这是模板: 搜索状态:
..
我正在使用 Angular 4、Bootstrap 4 和 ngbootstrap 开发应用程序.html 代码 -
..
我为 datepicker 创建了组件,我想在我的应用程序的许多其他组件中使用它.我有一些问题,因为它不会改变父表单组控件的值. 让我们进入代码: 导出类 DatePickerComponent {@ViewChild('input', {read: ElementRef, static: false}) inputRef: ElementRef;@输入()表格名称?:表格组;@输入()表
..
这是标签代码: import {Directive} from '@angular/core';@指示({选择器:'[ngbButtonLabel]',主持人:{'[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused'}})导出类 Ng
..
当我尝试根据 https://stackoverflow.com/a/38413274/将 ng-bootstrap 添加到 Angular-CLI 项目时1596547,我不能不使用 procompile 选项: import { Component } from '@angular/core';从“@ng-bootstrap/ng-bootstrap"导入 {NGB_ALERT_DIRECT
..
ng-bootstrap 安装过程中系统抛出错误: [error] 错误:找不到模块“@schematics/angular/utility/project"需要堆栈:- C:\angular\gis-semantics-framework\node_modules\@ng-bootstrap\ng-bootstrap\schematics\ng-add\index.js- C:\angular
..
我正在尝试在 Angular 8 中使用引导程序 https://ng-bootstrap.github.io/#/components/modal/examples 版本 4.我想让模态重新调整大小并且可拖动.我看到了一些其他版本的例子,比如 3.xx 但没有 angular - http://jsfiddle.net/GDVdN/ 是否有关于带有 Angular 8 的 Bootstra
..
在angular 6 项目中,我使用angular cli 命令ng g lierary @some/libName 创建了angular 库.在我的库中,我有一个需要 @ng-bootstrap/ng-bootstrap 的组件,所以我通过 npm i --save @ng-bootstrap/ng-bootstrap 添加了它>. 当我尝试使用命令 ng build @some/libN
..
在 ng-bootstrap 模态文档 有某种 let-* 属性的用途,似乎用于链接函数或事件以供以后使用.如果您查看示例顶部的 (click) 事件和 let-c/let-d 属性,您可以获得对它的作用的感觉.这似乎是 Angular 的一个特性,与 ng-bootstrap 无关. 但这叫什么?它有什么作用?此功能的 Angular 文档在哪里? 这是我所指的一个例子.见第一行.
..