angular2-seed icon indicating copy to clipboard operation
angular2-seed copied to clipboard

How to import ng2-bootstrap with webpack

Open liudianliang opened this issue 7 years ago • 1 comments

I don't konw how to import ng2-bootstrap with webpack,Can you tell me that? Thank you

liudianliang avatar Mar 06 '17 00:03 liudianliang

do you mean ng-bootstrap?

npm install --save @ng-bootstrap/ng-bootstrap

then:

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

@NgModule({
  declarations: [AppComponent, ...],
  imports: [NgbModule.forRoot(), ...],
  bootstrap: [AppComponent]
})
export class AppModule {}

willyelm avatar Mar 06 '17 17:03 willyelm