title: Angular 8: Get instance of service to another service without using constructor
body: <p>I am using <a href="https://docs.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/javascript/extensibility" rel="nofollow noreferrer">microsoft adaptive card 2.0</a>. I need to create some action service and pass that service to adaptive card module and from there it will execute. But while implementing I am facing issue. That action service has dependency on other services and we cant pass that dependencies from constructor.</p>
  <pre><code>**ActionService.js**
  
  import ServiceX from '../'
  import ServiceZ from '../'
  
  export Class ActionService{
     constructor(
      private serviceX: ServiceX,
      private serviceZ: ServiceZ
  )
   execute(){
     this.serviceX.action()
   }
  }
  
  
  **AdaptiveCard service**
  
  import { ActionService } from '../'
  import * as AC from 'adaptivecards';
  
  export class AdaptiveCardService{
  AC.GlobalRegistry.actions.register('name-of-action', ActionService);
  }
  </code></pre>
  <p>Here the problem is, from adaptive module calling Action service using NEW keyword and not passing dependencies as arguments. Hence in action service inside execute function, servicex getting undefined.</p>
  <p>Is there any way to inject services without calling in constructor .</p>
  <p>I referred below url to inject it but it is supported only in Angular 2</p>
  <p><a href="https://stackoverflow.com/questions/37482460/getting-instance-of-service-without-constructor-injection">Getting instance of service without constructor injection</a></p>