I made it possible by writing a script in the function.
onCountryChange(event: any) {
//this will get me the whole selected title containing name of the country and dial code of that country
var title = $('.country .iti__selected-flag').attr('title')
//splitting both
var splitted = title.split(':')
//getting country name
var countryCode = splitted[1];
//getting dial code of the country
this.UserCountryDialCode = splitted[0];
}