We just upgrade from v7 to v8.2.3 and now we have the following error:
Can't resolve all parameters for SectionComponent: (?).
Component's code:
@Component({
selector: 'section',
template: '<ng-content></ng-content>'
})
export class SectionComponent {
constructor(
@SkipSelf()
@Optional()
private parent: SectionComponent | null
) {}
get level(): number {
return this.parent ? this.parent.level + 1 : 1;
}
}
It worked flawlessly in v7. We are using this component across the whole app as a multiple components depends on level to know how they should render itself.
We just upgrade from v7 to v8.2.3 and now we have the following error:
Can't resolve all parameters for SectionComponent: (?).Component's code:
It worked flawlessly in v7. We are using this component across the whole app as a multiple components depends on level to know how they should render itself.