AngularJS drop down (ng- options) not binding - string to object (initial selection)
I am having a problem binding data retrieved from the server to a drop down list. The main issue I think is the fact that the comparison is done on differing object types. For example: 1. The object returned from the server contains a currency code string. we want this to be bound to an item in the dropdown list "baseCurrencyCode":"GBP" The view model returns the list of currencies.. These are returned as a list of currency objects with different properties {"currencies":[{"id":1,"rateId":0,"abbreviation":"AFN","description":"Afghani","rate":0.0,"rateDescription":null,"languageCode":"en-gb",