小编Edd*_*Web的帖子

ng-bootstrap在初始安装中不起作用

我刚刚在npm上安装了bootstrap4,font awesome和ng-bootstrap,并且正在尝试一些ng-bootstrap演示代码。什么都没用。

第一次发布,对Angular世界来说还很陌生。如果我没有以正确的格式发布此内容,或者在错误的“区域”中提出问题,请放轻松。

我只是想了解ng-bootstrap的用法。

app.module.ts:

  import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { HttpClientModule } from '@angular/common/http';
    import { RouterModule } from '@angular/router';
    import { AngularFontAwesomeModule } from 'angular-font-awesome/angular-font-awesome';
    import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

    import { AppComponent } from './app.component';
    import { CustomersModule } from './customers/customers.module';
    import { WelcomeComponent } from './welcome/welcome.component';

    @NgModule({
     declarations: [
        AppComponent,
        WelcomeComponent
     ],
     imports: [
        BrowserModule,
        HttpClientModule,
        AngularFontAwesomeModule,
        RouterModule.forRoot([
            { path: 'home', component: WelcomeComponent },
            { path: '', …
Run Code Online (Sandbox Code Playgroud)

angular-cli ng-bootstrap angular

1
推荐指数
1
解决办法
1631
查看次数

标签 统计

angular ×1

angular-cli ×1

ng-bootstrap ×1