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"
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"
params='{"ws_key":"XXXXXX","output_format":"JSON"}'
handle-as="json"
last-response="{{jsondata}}">
</iron-ajax>
<div class="card">
<div class="header">{{jsondata.order.total_paid_real}} €</div>
</div>
</template>
Can we nest 2 <iron-ajax>?