I\'m trying to implement a typeahead in Angular using http://angular-ui.github.io/bootstrap/, where the typeahead field displays full addresses but once clicked another fiel
I has a similar problem,
{ Code: AL,ParentCode: null,Value: Albania,Id: 1206,Name: countries }
but dindt work, with the use of a service in this way
$scope.countries = [];
_services.getcountries(function(result) {
$scope.countries = result;
});
and was solved with
$scope.countries = [];
_services.getcountries(function(result) {
$.each(result, function(i, o) {
$scope.countries.push(o);
});
});
I hope help somebody