I'm currently working on a web application using Angular 5 and Bootstrap 4, and I've encountered issues with the navigation menu bar dropdowns. Despite following the guidelines provided in the official documentation here, I can't seem to get the drop-down menus to function properly!
<header>
<div class = "row align-items-end nopadding">
<div class = "col-md-3" style = "background-color: blanchedalmond"><app-logo></app-logo></div>
<div class = "col-md-6">
<ul class="nav justify-content-center">
<li class="nav-item">
<a class="nav-link menu-item" href="#">Links</a>
</li>
<li class="nav-item">
<a class="nav-link menu-item" href="#">Charts</a>
</li>
<li class="nav-item">
<a class="nav-link menu-item" href="#">Articles</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link menu-item dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Classifications</a>
<div class="dropdown dropdown-menu">
<a class="dropdown-item menu-item" href="#">Teams</a>
<a class="dropdown-item menu-item" href="#">Players</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
</ul>
</div>
<div class = "col-md-3 right-content">
Right column
</div>
</div>
</header>
Can someone please help me figure out what am I doing wrong?
Edit I:
In an attempt to resolve this issue, I have installed jQuery and Popper via npm, updated my angular-cli.json file, and restarted the server:
angular-cli.json:
https://i.sstatic.net/r8M5z.png
Upon loading the page, I encountered the following error:
Error in the source mapping: request failed with status 404
Resource URL: http://localhost:4200/ scripts.bundle.js
Sourcemap URL: bootstrap.min.js.map
The installation of jQuery resulted in this output:
https://i.sstatic.net/USA3d.png
Similarly, installing Popper led to the following output:
https://i.sstatic.net/ZDc8q.png
Any suggestions on solving these errors would be greatly appreciated.