instead of:
sourceFormControl.setErrors({ "scoresGreaterThan": true });
I need it dynamic:
let errorKey = "scoresGreaterThan";
sourceFormControl.setErrors({ errorKey: true });
but that did not work :-/
I want the content of the errorKey to be the key of the object literal passed to the setErrors method.
How can I do that with TypeScript?