angular append to FormControl errors code example
Example: angular append to FormControl errors
control.setErrors({ ...(control.errors || {}), 'newError': 'text of the error' })
control.setErrors({ ...(control.errors || {}), 'newError': 'text of the error' })