I'm having an issue importing ChangeDetectorRef into one of my components.
For reference, the family tree goes PComponent (parent) -> Options-Grid (child) -> FComponent (grandchild).
This is the error I'm getting in the browser:
StaticInjectorError(AppModule)[FComponent -> ChangeDetectorRef]:
StaticInjectorError(Platform: core)[FComponent -> ChangeDetectorRef]:
NullInjectorError: No provider for ChangeDetectorRef!
The line of code that the error takes me to is in the Grandparent component (PComponent), where it instantiates the first child component (Options-Grid).
<div>
<options-grid></options-grid>
</div>
I am providing ChangeDetectorRef correctly in the constructor and importing it correctly in FComponent. The error reference in the code points to PComponent html where I instantiate Options-Grid component.
Is this because I'm not providing ChangeDetectorRef in the parent component?