PolymerElements / iron-ajax

Easily make ajax requests
https://www.webcomponents.org/element/PolymerElements/iron-ajax
127 stars 113 forks source link

Dynamically launch several requests #242

Open RoXuS opened 7 years ago

RoXuS commented 7 years ago

Hello,

It is not an issue but a question.

To perform several dynamic requests we can't use an iron-ajax.

So, we have created a specific element :

<iron-multi-ajax
    auto
    urls="[]"
    handle-as="json"
    on-response="handleResponse"
    debounce="300"></iron-multi-ajax>

Then we can set dynamically urls property.

It is a simple web component which uses the iron-request element and the promises in order to wait all responses.

Do you think that this component could be in this polymer component?

Thx