title: What is the best practice for making an AJAX call in Angular.js?
body: <p>I was reading this article: <a href="http://eviltrout.com/2013/06/15/ember-vs-angular.html">http://eviltrout.com/2013/06/15/ember-vs-angular.html</a></p>
  
  <p>And it said, </p>
  
  <blockquote>
    <p>Due to it’s lack of conventions, I wonder how many Angular projects
    rely on bad practices such as AJAX calls directly within controllers?
    Due to dependency injection, are developers injecting router
    parameters into directives? Are novice AngularJS developers going to
    structure their code in a way that an experienced AngularJS developer
    believes is idiomatic?</p>
  </blockquote>
  
  <p>I am actually making <code>$http</code> calls from my Angular.js controller. Why is it a bad practice? What is the best practice for making <code>$http</code> calls then? and why? </p>