Check out the code snippet below for a simple dropdown implementation:
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<div class="btn-group" _ngcontent-c9="" dropdown="">
<button class="btn btn-light" type="button" _ngcontent-c9="">Action</button>
<button class="btn btn-light dropdown-toggle dropdown-toggle-split" aria-expanded="false" type="button" data-toggle="dropdown" _ngcontent-c9="">
<span class="caret" _ngcontent-c9=""></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">abcd</a></li>
<li><a href="#">efgh</a></li>
</ul>
</div>
If you're interested in checking out the Angular component, here's the link: When placed in an individual HTML page, it functions properly. However, when included in the Angular component that I created, it doesn't work as expected. Any ideas why?