Enter the 'INDIA' in 'Country Name' or 'City Name' text box to see the validation in 'State Name' text box.
{{locationForm.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'
{{locationForm.controls?.cityName?.errors?.upperCase.message}}
{{locationForm.controls?.colonyName?.errors?.upperCase.message}}