在angular 6项目中,我使用angular cli命令ng g lierary @some/libName创建了angular库。在我的库中,我有一个需要@ng-bootstrap/ng-bootstrap的组件,所以我通过npm i --save @ng-bootstrap/ng-bootstrap添加了它。
当我尝试使用ng build @some/libName --prod命令构建这个库时,它抛出了下面的错误。
Dependency @ng-bootstrap/ng-bootstrap must be explicitly whiteliste
有人解决了吗?
我是Angular的新手,我正在尝试使用ng bootstrap的组件在angular中创建一个图像滑块旋转木马,但是在我创建了一个angular项目之后,我使用npm install --save @ng-bootstrap/ng-bootstrap安装了"ng bootstrap“(在项目中),并使用import {NgbModule} from '@ng-bootstrap/ng-bootstrap';将其导入到app.module.ts中。 我还在项目中安装了ng add @angular/localize,但我不确定它显示了下面的错误: ERROR in T
目前,我正在使用Angular2进行一个TypeScript项目,并且无法使HashLocationStrategy工作。我在引导过程中重写了LocationStrategy,解释方式如下:
import {bootstrap} from 'angular2/platform/browser';
import {ROUTER_PROVIDERS} from 'angular2/router';
import {AppComponent} from './app.component';
// Add these symb
当选择器嵌入到app.component.html中时,bootstrap css不能正确设置我的次要角度组件的样式。在使用ng new myapp创建默认的angular8项目之后,我通过包含它来使用ng-bootstrap
我使用Angular CLI生成了一个新的应用程序:ng new my-new-app。然后在app.component.html中安装ng-bootstrap,我已经包含了指令:app-child,并且成功地包含了组件,但是它不是由bootstrap设置样式的。当我将代码直接转储到app.component.html中(不使用app-child指令;它被注释掉了)时,
我已经创建了一个angular 5项目,我想在上面集成Bootstrap 5,以便能够使用scss文件对其进行自定义。
我已经使用angular-cli命令行创建了这个项目:
ng new sample-app
cd sample-app
然后我将bootstrap 4依赖项添加到我的项目中:
npm install --save bootstrap@4.1.1
我已经将default.StylesExt属性设置为scss:
ng set defaults.styleExt=scss
有没有人知道我还应该做些什么来加载引导程序文件?或者在我的应用程序中启动?
非常感谢你提前这么做。
假设我的项目中有一个打开模态包含寄存器表单的链接,并且这个表单被角验证,我在我的项目中使用了ng-bootstrap库,在模型中我定义了一个指令,然后为它编写了一个组件,但是该模型不会被打开,并且会发生错误:
ERROR Error: No provider for Router!
at injectionError (core.es5.js:1169)
at noProviderError (core.es5.js:1207)
at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.