If you want to apply conditional validation on 'Second Number' or 'Third Number', then you need to add 'Number Type' input as 'Prime'.
{{numberInfoFormGroup.controls.numberType.errors.primeNumber.message}}
If you want to apply conditional validation on 'Third Number' then you need to add 'Number Type' input as 'Prime'.
Conditional Expression with type 'string'
{{numberInfoFormGroup.controls.thirdNumber.errors.primeNumber.message}}
You can enter only prime number
Shows custom message.
{{numberInfoFormGroup.controls.firstNumber.errors.primeNumber.message}}