AngularJS: Better way to display success messages

Posted by Sup on Stack Overflow See other posts from Stack Overflow or by Sup
Published on 2013-10-18T03:42:20Z Indexed on 2013/10/18 3:54 UTC
Read the original article Hit count: 144

Filed under:
$('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?

© Stack Overflow or respective owner

Related posts about angularjs