I have MyService which is injected into ComponetA and ComponetB.
Is it possible to find out from which component is the MyService.myMethod() called?
@Injectable()
export class MyService {
public myMethod(): void {
console.log('called from component: ' + component);
}
}