I have a custom input made in accordance to this article:
UPDATE 1:
In components <app-input>
is used in the following way ▼
CodePudding user response:
As it seems you use formControl
without formGroup
in some cases, so use @Optional
decorator to have controlContainer
null in those cases.
constructor(@Optional() private controlContainer: ControlContainer) {}