created a directive with compile function
completed the compile function
invoiking the autocomplete directive
created a service function to call autocomplete api
reference the getcitydetails function in SettingsCtrl
calling the api in the directive
fix the url issue
fixed the cors issue by adding the correct permission
fixed typo error
autocomplete with issues