title: Angular 9 BaseComponent with @Injectable()
body: <p>In Angular 8 I was able to create base components (classes the actual component inhert from) with an "@Injectable" attribute. The Angular 9 compiler tells me:</p>
  
  <blockquote>
    <p>The component YourComponent inherits its constructor from BaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of BaseComponent's constructor. Either add a @Directive decorator to BaseComponent, or add an explicit constructor to RoleSelectDialogComponent.</p>
  </blockquote>
  
  <p>What is the Angular 9 way of doing these things now? This works but looks somehow hacky:</p>
  
  <pre><code>@Component({
      selector: 'baseComponent',
      template: 'no-ui'
  })
  </code></pre>