I am trying to integrate ng bootstrap UI into my Angular 2 project. After following the simple instructions found here: https://ng-bootstrap.github.io/#/getting-started i
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.
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.