title: $scope is not defined in service AngularJs:
body: <blockquote>
    <p>got error of scope not defined when i use for response message:</p>
  </blockquote>
  
  <pre><code>$scope.responsemessage = response;
  </code></pre>
  
  <blockquote>
    <p>then I added $scope here like this:</p>
  </blockquote>
  
  <pre><code>app.service('fileUpload', ['$http', '$scope', function ($http, $scope) {
  </code></pre>
  
  <blockquote>
    <p>When I added above $scope got this error Error: [$injector:unpr]
    <a href="http://errors.angularjs.org/1.4.8/" rel="nofollow">http://errors.angularjs.org/1.4.8/</a>$injector/unpr?p0=.................</p>
  </blockquote>