I'm having trouble displaying a dropdown and his options via the bootstrap directive 'ngbDropdown'.
Using this documentation example:
<div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Toggle dropdown</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem>Action - 1</button>
<button ngbDropdownItem>Another Action</button>
<button ngbDropdownItem>Something else is here</button>
</div>
</div>
Is displaying these:
I already imported the NgbDropdownModule and NgbModule at AppModule.
I'm using localy angular-cli : 8.3.26.
I think I've installed all the packages:
- "@angular/animations": "^8.2.8"
- "@angular/common": "^8.2.8"
- "@angular/compiler": "^8.2.8"
- "@angular/core": "^8.2.8"
- "@angular/forms": "~8.2.8"
- "@angular/platform-browser": "^8.2.8"
- "@angular/platform-browser-dynamic": "^8.2.8"
- "@angular/router": "^8.2.8"
- "@ng-bootstrap/ng-bootstrap": "^5.3.1"
- "bootstrap": "^4.3.1"
- "core-js": "^3.6.5"
- "ngx-alerts": "^4.0.0",
- "ngx-bootstrap": "^5.4.0"
- "rxjs": "~6.5.4"
- "tslib": "^1.10.0"
- "zone.js": "~0.9.1"
In the boostrap documentation: https://ng-bootstrap.github.io/#/components/dropdown/examples the stackblitz example is at version 9 and I must use version 8.
Some help? Grateful.
EDIT:
RESOLVED !
Need to import popper.js and jquery at the index.html, like this:

