If you want to apply conditional validation on 'Number' or 'Odd Number', then you need to add 'Type' input as 'Odd'
{{userForm.controls?.type?.errors?.odd.message}}
If you want to apply conditional validation on 'Odd Number' then you need to add 'Type' input as 'Odd'.
Conditional Expression with type 'string'
{{userForm.controls?.oddNumber?.errors?.odd.message}}
you can enter only an odd number
Shows custom message.
{{userForm.controls?.multiplesOfOddNumber?.errors?.odd.message}}