json

  • With angularJS, I need populate a select with data coming from a ajax call.
  • I have a controlller called this controller I do a ajax call to get json data(‘profissionais object’).
  • My problem is that I get the json data returning from server, but my select is never populate.

I have a controlller called “TabPacProfissionalController”.In this controller I do a ajax call to get json data(‘profissionais object’).
So far so good.

@webpoint_new: #wp_Dev #ajax #stackoverflow Populate a select with ajax with ng-options using AngularJs

With angularJS, I need populate a select with data coming from a ajax call.

My problem is that I get the json data returning from server, but my select is never populate.

nome

nr

(key,value) notation you are using is for object data sources, as in if you wanted to iterate through the properties of a single object, rather than a collection of objects which is what you seem to be getting from the

$http

To see the parsed server response, you could use

json