If you want to apply conditional validation on 'Birth Date' or 'Admission Date', then you need to add 'User Name' input as 'Bharat'
{{userFormGroup.controls.userName.errors.maxDate.message}}
To apply the validation of Max Date on 'Admission Date' field, then enter the value 'Bharat' in 'User Name' textbox and you can enter maxDate as 30th july 2018
Conditional Expression with type 'string'
{{userFormGroup.controls.admissionDate.errors.maxDate.message}}
To apply the validation of Max Date on 'Birth date' field, then enter the value 'Bharat' in 'User Name' textbox and you can enter maxDate as 30th july 2018
Conditional Expression with type 'function'
{{userFormGroup.controls.birthDate.errors.maxDate.message}}