I have been trying to use ng-bootstrap in my Angular 2 project following the documentation on the ng-bootstrap official site.
What I have done are as follow:
npm install [email protected]- Navigate to the root /bootstrap directory and run
npm installto install local dependencies listed in package.json. - Navigate to the root project again and run
npm install --save @ng-bootstrap/ng-bootstrap
After that, I import in the module as follows:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { routing } from './app.routing';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import { AppComponent } from './app.component';
import { PageModule } from "./page/page.module";
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
NgbModule,
PageModule,
routing
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
However, I am still unable to use the bootstrap styles, such as pull-left, in my project.
For information, I am using angular-cli v1.0.0-beta.15 with webpack.
How can I solve this issue?