How to return code for country on angular 7 ?
I work on angular 7 app I face Issue I cannot display country code for country meaning
I already return country on ZCO as India , egypt,unitedstates and it working
but I cannot display code for country as IN,eg,us
ts compoent
- this.OriginCountry= this.partDetailsService.currentData.OriginCountry;
- this.OriginCountry.forEach(e => {
- e.code=getCode(e.ZCO);
- });
- console.log("country origion" + JSON.stringify(this.OriginCountry) )
- "let country of OriginCountry" >
- {{country.ZCO}}
class="mr-05" src="http://part.z2data.com/assets/img/flags/{{country.code}}.png">
I already have country and represented by ZCO
but code as us,in cannot return
are there are any package or function do that on angular 7
please help me
ZCO represent country as egypt, Unitedstates,India
Siddharth GajbhiyePosted Jul 13, 2020, 10:41 PM
ahmed elbarbaryPosted Jul 9, 2020, 7:34 AM
Jenith ThakkarPosted Jul 9, 2020, 7:11 AM
You write
{{country.ZCO}}
so might be that should be like
{{country.code}}
Thank you