Enter the 'INDIA' in 'Country Name' or 'City Name' text box to see the validation in 'State Name' text box.
{{locationFormGroup.controls.countryName.errors.upperCase.message}}
To apply the validation of upperCase on 'City Name' field, then enter the value of 'INDIA' in 'Country Name' textbox.
Conditional Expression with type 'string'
{{locationFormGroup.controls.cityName.errors.upperCase.message}}
To apply the validation of upperCase on 'State Name' field, then enter the value of 'INDIA' in 'Country Name' textbox.
Conditional Expression with type 'function'
{{locationFormGroup.controls.stateName.errors.upperCase.message}}