If you want to apply conditional validation on 'Number' or 'Odd Number', then you need to add 'Type' input as 'Odd'
{{userFormGroup.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'
{{userFormGroup.controls.oddNumber.errors.odd.message}}
you can enter only an odd number
Shows custom message.
{{userFormGroup.controls.multiplesOfOddNumber.errors.odd.message}}