SyntaxFix
Write A Post
Hire A Developer
Questions
Though its late but following solution worked form me.
let control = this.registerForm.controls['controlName']; control.setErrors({backend: {someProp: "Invalid Data"}}); let message = control.errors['backend'].someProp;