title: How to inject AngularJS dependencies while calling from Angular module
body: <p>I am trying to host a simple hybrid application (AngularJS + Angular 7). I was able to set the basic and bootstrap both the modules based on the guidelines. I was able to establish the communication from AngularJS to Angular.</p>
  <p>I followed the guidelines for injecting AngularJS service in the Angular module ( <a href="https://angular.io/guide/upgrade" rel="nofollow noreferrer">https://angular.io/guide/upgrade</a> ). However, I see there are few issues that I am stuck with which could be a basic set up which I am trying to understand.</p>
  <p>Here is the real issue, When I try to call the AngularJS service from Angular, it fails during the run time stating the dependency injected in AngularJS service is undefined. For ex: $http is not defined.</p>
  <p>My question is, do I need to inject this dependency through a provider in the Angular module, I have a provider which injects the service itself to the Angular module. Any help with the guidelines or standards would be helpful.</p>
  <p>Here is the format of my AngularJS service. At present, I am modifying this to class and trying to invoke from Angular</p>
  <pre><code>function GetUsers( $http, OtherDependency) {
  
  return {
    getUsers: getUsers
  }
  
  function getUsers(userID, key, phrase) {
  //$http is used inside this method 
  }
  </code></pre>
  <p>In angular, I am injecting this service through a provider and trying to use this service by instantiating through its constructor</p>