Advertisement
Varun_Krishna

alert in angularjs

Feb 10th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(result = nil) {
  2.         // Content - Could also be "loaded" from somewhere.
  3.         data = "<div class='alert alert-info">No Result</div>';
  4.        // Container with ID == content
  5.        $('#content').prepend(data);
  6.        // Close after 3000ms
  7.        window.setTimeout(function() { $('.alert').alert('close') }, 3000);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement