I am attempting to use the NbgDropdown in an app and I get the following error:
NullInjectorError: No provider for NgbDropdown!
My app.module file looks as follows:
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
...
NgModule({
declarations: [
...
],
imports: [
...
NgbModule.forRoot()
],
providers: [
...
],
bootstrap: [AppComponent]
})
From other answers, this looks like what should be required
I saw the following terse comment that might help, but it is not meaningful to me:
https://mcmap.net/q/503209/-angular2-ng-bootstrap-no-provider-error