Bootstrap not working in template #581

Closed
opened 2025-08-09 17:16:50 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @DickvdBrink on 7/14/2017

After running yo aspnetcore-spa I chose angular and executing dotnet restore && dotnet run I try to open the url in the browser. Everything is looking good (style and stuff) but the bootstrap menu isn't working, if you make the page small you get the hamburger menu but it doesn't open on a click.
When you add the following code

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

to the html it starts to work again, so i suspect something is wrong with the bundle and the bootstrap javascript isn't executed

*Originally created by @DickvdBrink on 7/14/2017* After running `yo aspnetcore-spa` I chose angular and executing `dotnet restore && dotnet run` I try to open the url in the browser. Everything is looking good (style and stuff) but the bootstrap menu isn't working, if you make the page small you get the hamburger menu but it doesn't open on a click. When you add the following code ``` <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> ``` to the html it starts to work again, so i suspect something is wrong with the bundle and the bootstrap javascript isn't executed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#581
No description provided.