when a service is created and injected on two components how many instances will it create code example
Example: how to inject service in component angular 6
you can inject service in components constructor:
constructor(public anyService: Service){}