I\'m trying to call a service from a particular class, but for some reason it can\'t be called, even though I am able to use it in other classes. I\'m using @Input
This will happen if something wrong was provided as a provider. And it is unlikely that there may be another reason for this.
In one place it is ...shared/service/cert.service
, and in another it is ...shared/Service/cert.service
. Case matters. It depends on the environment what happens with these modules during build process, but this can cause errors, e.g. they may become duplicated and refer to different objects.
To quickly debug this, CertService
can be exposed from both files as window.CertService1
and window.CertService2
and compared in console if both are defined and equal.