Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

How to import ng2-bootstrap with webpack #163

Open
liudianliang opened this issue Mar 6, 2017 · 1 comment
Open

How to import ng2-bootstrap with webpack #163

liudianliang opened this issue Mar 6, 2017 · 1 comment

Comments

@liudianliang
Copy link

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

@willyelm
Copy link

willyelm commented Mar 6, 2017

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 {}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants