title: Angular - How to pass parameters to TypeScript base Class
body: <p>To use dependence injection in Angular's Services/ Components/ Directive and other structures, you need to <code>Import</code> other structures and then list them in the constructor.<br>
  For example (injecting <code>Title</code> service):</p>
  
  <pre><code>import { Title } from '@angular/platform-browser';
  
  @Component({ ... })
  export class AppComponent implements OnInit {
    public constructor(private _titleService: Title) {}
  
    public ngOnInit(): void {
      this._titleService.setTitle("I'm the Home Page"); // use injected service
    }
  }
  </code></pre>
  
  <p>Now I want to create polymorphic family with base class and drive classes, where I inject external services into the base class, and in addition I wont to pass parameters from the drive class to the base class</p>
  
  <pre><code>import { Title } from '@angular/platform-browser';
  
  @Component({ ... })
  export class BaseService {
    public constructor(
      private _titleService: Title,
      private _message: string) {
      console.log("Hello, I'm Base class. Message from Drive class: " + _message);
    }
  }
  
  @Component({ ... })
  export class DriveService extends BaseService {
    public constructor() {
      const message = "Hello from Drive class";
      super(message); // &lt;-- Error, missing parameter!  
    }
  }
  </code></pre>
  
  <p>I'm getting an error in the <code>DriveService</code> from the call to the <code>BaseService</code> because I don't pass the titleService.<br>
  Now I <strong>don't want to pass the titleService from all the child</strong> class of BaseService. I want to <strong>only</strong> import and inject the titleService <strong>once</strong> at the BaseService code, and only pass the _message parameter from all the children class.</p>
  
  <p>Is this possible? if so how? or should I import the TitleService and inject it in each instance of my DriveClass</p>