When we add the provide metadata to a component, that means that the service injected will be: code example
Example 1: how to inject service in component angular 6
you can inject service in components constructor:
constructor(public anyService: Service){}
Example 2: angular import service
import { <service name>Service } from '../<service path>';