title: Can't resolve all parameters for service provider?
body: <p>There is a service that I use as provider in each components:</p>
  
  <pre><code>export class LayersSemanticService {
      constructor(
      private nMapLibrary: MapLibraryService,
      private linkService: LinkService
    ) {
    }
  }
  </code></pre>
  
  <p>Using as instance:</p>
  
  <pre><code>@Component({
    selector: "app-intersection-layer-component",
    templateUrl: "./intersection-layer-component.component.html",
    styleUrls: ["./intersection-layer-component.component.scss"],
    providers: [LayersSemanticService]
  })
  </code></pre>
  
  <p>Problem is that I get this eror:</p>
  
  <pre><code>compiler.js:2175 Uncaught Error: Can't resolve all parameters for LayersSemanticService: (?, ?).
  </code></pre>
  
  <p>It can be solve by using service as root service, but I need seperate instance of service.</p>