this is my ngOnInit function
ngOnInit
instance.input = document.getElementById(\'google_places_ac\'); autocomplete = new google.maps.places.Autocomp
You should use property binding by wrapping attribute inside []
[]
Additional thing is, you made typo while writing country like you wrotecoutnry instead in two places.
country
coutnry
this.sharedService.country = this.coutnry; //in constructor attr.country="{{coutnry}}" //second place