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
In my case, I imported the service as
import {MyService} from '../services/my.service'
in one place, and
import {MyService} from '../services/index'
in the other place, while index.ts contains all export statements for services in the same folder.
After I unified to the 2nd form of importing, the problem had gone.