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}}
If you want to apply conditional validation on 'Second Number' then you need to add 'Number Type' input as 'Prime'.
Conditional Expression with type 'function'
{{numberInfoFormGroup.controls.secondNumber.errors.primeNumber.message}}