I'm encountering an issue with the ng2 modal in my template - it's not opening or hiding through my TypeScript code.
<modal id='saveeditsmodal'>
<modal-header>
<h4 class="modal-title">Editing item(s) in Recently Viewed</h4>
</modal-header>
<!-- Modal content-->
<modal-content>
<div class="modal-body">
<p>You have unsaved changes.</p>
</div>
<div class="modal-body">
<p>Are you sure you want to discard these changes?</p>
</div>
</modal-content>
<modal-footer>
<button type="button" class="btn btn-primary" data-dismiss="modal">Stay On List</button>
<button type="button" class="btn btn-default" data-dismiss="modal" (click)='closebox()'>Discard</button>
</modal-footer>
</modal>
Here is my TypeScript code:
$('#saveeditsmodal').show();
I'm new to using ng2 model, so I'm unsure of how to properly hide or show it. Any suggestions or help would be greatly appreciated. Thank you!