I'm having problem injecting a service through standalone component's constructor.
Service is defined as Injectable with provider set to root:
@Injectable({ providedIn: 'root' }) export class ProductsService {...}
And in main.ts, for bootstrapApplication function call there's ProductsService defined in "providers" section.
This should be enough to be able to inject ProductsService singleton in component's constructor, yet it's not being recognized there (reported error: Cannot find name ProductsService).
I really do not want to use direct references to service inside of standalone component, nor inject function inside of component.
What am I missing here?
import {ProductService} from './your-path/your-service-component-file'(without .ts)