I created a stackblitz:
https://stackblitz.com/edit/angular-ivy-ghhkp6?file=src%2Fapp%2Fapp.component.html
I'm doing something wrong, but I don't understand what. I'm basically using the example on the website.
Any help?
Add <div [ngbNavOutlet]="nav"></div>
this html
at the end of your ul
element. I tested it on stackblitz and it's working now. Updated stackbltiz link: https://stackblitz.com/edit/angular-ivy-knqfd2?file=src/app/app.component.html
The Dependency bootstrap is missing. Install ng-bootstrap with the following command, this automatically installs the bootstrap dependency as well:
ng add @ng-bootstrap/ng-bootstrap
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.