Currently, I am working on building an app using Bootstrap and AngularJS. I have integrated a Bootstrap modal popup for the content while other pages are loaded into ng-view. The issue I am facing is that when the content displayed in ng-view contains the modal popup and I click on a button that links to the next page, the background of the modal popup remains black with opacity, showing the page behind it. This problem does not occur when I run the pages separately. Any idea how I can fix this?
Here is the code snippet:
<div id="regular-service" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="data-extract-popup">
<div class="data-extract-heading">How do you want to use this data?</div>
<table class="data-extract-table">
<tr>
<td><a href="#/clean-data" class="btn btn-lg btn-warning">CLEAN DATA</a></td>
<td><a href="#/raw-data" class="btn btn-lg btn-warning">RAW DATA</a></td>
</tr>
<tr>
<td>Cleaned up for your use.May have some missing pieces.</td>
<td>All pieces of data are intact here.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
Code for Modal Trigger:
$(".regular").click(function(){
$("#regular-service").modal('show');
});
Here is how it appears: before popup
After popup:
The issue persists with the popup background remaining the same even after closing it.