Consider this as more of a question than a bug.
I'm using angucomplete-alt to talk to my API , it works perfectly, seriously the best autocomplete for angular and I've tried them all.
Anyway my API returns JSON of cities basically looks like so:
{ cities:[ {city:'Haifa',code:1339}, {city:'Tel-Aviv', code:1338} ] }
And I can see it populate accordingly, pretty good.
However when I attach the city to something like so :
selected-object="details.client.addr.city"
And pick a city from the angucomplete-alt
The result on $scope.details.client.addr.city
is :
{"city":{"title":"Haifa","description":{"code":"337","city":"Haifa"},"image":"","originalObject":{"code":"337","city":"Haifa"}}}})
My question is:
Can I minify this? it looks like the data structure is pretty much strict and I couldn't change it without breaking the source code.
Thanks for repliers!