AngularJS BootstrapUI Typeahead with object & selection functionality

后端 未结 6 1266
有刺的猬
有刺的猬 2020-12-24 06:17

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

6条回答
  •  时光说笑
    2020-12-24 06:59

    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

提交回复
热议问题