title: How to call rest service from angularjs with basic authentication
body: <p>I have a REST service running on server.</p>
  
  <p>I have Chrome Postman to access that service with Basic Authentication, and I can access that service with this Post man.</p>
  
  <p>But, now I want to create a UI to show received data from REST in AngularJS.
  <strong>For this I tried</strong></p>
  
  <p>How I can call this REST service by using AngularJS with Basic Authentication?
  I have username and password.</p>
  
  <p>Thanks,
  Ashok</p>