Hello,

I would nest 2 Ajax requests.

I have to make a first request to have the list of commands and go looking 
for the detail of each command with another queries.

But my command displays on outes the records the detail of the last command 
:(

   <iron-ajax
        auto
        id="requestRepos"
        url="http://www.xxxxx.fr/api/orders/";
        
params='{"ws_key":"XXXXX","filter[current_state]":"9","output_format":"JSON"}'
        handle-as="json"
        last-response="{{response}}">
    </iron-ajax>

    <template is="dom-repeat" items="[[response.orders]]" as="order">
    <iron-ajax
        auto
        id="requestDetail"
        url="http://www.xxxx.fr/api/orders/{{order.id}}";
        params='{"ws_key":"XXXXXX","output_format":"JSON"}'
        handle-as="json"
        last-response="{{jsondata}}">
    </iron-ajax>    
    <div class="card">
      <div class="circle">{{order.id}}</div>
             <div class="header">{{jsondata.order.total_paid_real}} €</div>
             </div>
        </template>

Can we nest 2 <iron-ajax>?

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to polymer-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/6fd08682-d5f6-4662-b357-ab396eacf543%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to