here's a simple custom validator in angular 2
hasUpperCase(control:FormControl):{[s:string]:boolean}{
if (/[A-Z]/.test(control.value) === true { return null }
else{ return {noUpperCase:true} }
}
How can I access the else return, so that I can prompt the user that the input has no upper case?
Thanks!