小编Pad*_*ich的帖子

Angular2 ng-bootstrap - 没有提供程序错误

我正在尝试将ng bootstrap UI集成到我的Angular 2项目中.按照此处的简单说明操作后: https://ng-bootstrap.github.io/#/getting-started使用任何ngb bootstrap标记时出现以下错误:

错误:没有NgbAlertConfig的提供者!

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { AppComponent } from './app.component';
import { StocksComponent } from './stocks/stocks.component';

import { HighlightDirective } from './highlight.directive';
import { StockService } from './stock.service';
import { DateFormatterPipe } from './date-formatter.pipe'

import { routing } from './app.routing';
import { DashboardComponent } from './dashboard/dashboard.component'

import { CurrencyService } from …
Run Code Online (Sandbox Code Playgroud)

ng-bootstrap angular

20
推荐指数
2
解决办法
2万
查看次数

标签 统计

angular ×1

ng-bootstrap ×1