I'm using Angular Reactive form in my Angular app and i have a <select> input where the default value if -1, by setting Validators.required even if the value is still -1 it will be accepted, so how could i make a validator to accept the value if is valid and is != -1?
I was trying to do something like this but it's not working:
coperti: new FormControl(-1, [Validators.required, Validators.pattern(`[\d]`)]),