title: Angular inject service into base class but not in sub-class and use the parent service in sub-classes
body: <p>Using Angular 7 &amp; Typescript: I have a base class that uses a lot of services and child classes (about 40 sub-class) and I don't want to add those services in all subclass constructor and pass them to <code>super()</code> but I still need to use those services in all subclass.</p>
  
  <hr>
  
  <pre><code>export class parentTool {
  
      constructor(type: string, public service1: Service1, public service2: Service2,public service3: Service3, public service4: Service4){}
  }
  
  export class ChildTool1 extends parentTool {
  
      constructor(public service1: Service1, public service2: Service2,public service3: Service3, public service4: Service4) {
  
          super("tool1", service1, service2, service3, service4);
      }
  }
  
  export class ChildTool2 extends parentTool {
  
      constructor(public service1: Service1, public service2: Service2,public service3: Service3, public service4: Service4) {
  
          super("tool2", service1, service2, service3, service4);
      }
  }
  </code></pre>