PolymerElements / iron-ajax

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

auto, automatically perform AJAX request when body changes #249

Open lastmjs opened 7 years ago

lastmjs commented 7 years ago

Right now the docs say that when the auto property is true, AJAX requests will be automatically performed when either the URL or params change. I often use iron-ajax to perform post requests, and it would be really nice if auto also sent requests when the body is changed. Otherwise I have to do a dom lookup, generate a request, and wait for it in JavaScript, very imperative.