AngularJS: Better way to display success messages
- by Sup
$('body').on('click', '#save-btn', function () {
$('#greetingsModal').modal('show');
});
<div id="greetingsModal" class="modal hide fade" tabindex="-1" role="dialog" aria- labelledby="myModalLabel" aria-hidden="true">
<div class="alert alert-success">
<a href="../admin/Supplier" class="close" data-dismiss="alert">x</a>
<strong>Well done!</strong>.
</div>
I want to display a popup message using the above styles whenever 'save-btn' is clicked. The above code works fine but there is a lot of time delay by doing it this way. Is there any way to display such a alert message using angular?