Angular2 ng-bootstrap - no provider error
import NgbModule in your app.module.ts like this-
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
and add it in imports section of ngmodule-
@NgModule({ declarations: [AppComponent, ...], imports: [NgbModule.forRoot(), ...], bootstrap: [AppComponent]})
See if this helps.
For anyone else that's getting this error for a different component, e.g ngbDropdown
.. make sure you have the ngbDropdown
set on the parent element.