I'm currently working on a web application using Materializecss and AngularJS for the front-end. However, I've encountered an issue with the dropdown menu component of Materialize not functioning as expected.
Here's an example of the dropdown from their official site:
$( document ).ready(function(){
$(".dropdown-button").dropdown();
});
<ul id="dropdown1" class="dropdown-content">
<li><a href="#!">one</a></li>
<li><a href="#!">two</a></li>
<li class="divider"></li>
<li><a href="#!">three</a></li>
</ul>
The dropdown seems to work fine on their site, but it's not functioning properly on my end. I suspect that the href="#!"
part of the dropdown button may be causing conflicts with AngularJS routing.
If this indeed is the issue, I would like to know how to make AngularJS ignore certain href links, specifically those required for dropdowns and modals. Alternatively, if this isn't the problem, I'm open to suggestions on how to troubleshoot and resolve the dropdown menu functionality.
I have attempted solutions such as removing or changing the href attribute to href=""
, but so far, none of these attempts have been successful in resolving the issue.