<oe-ajax>
The oe-ajax
element exposes network request functionality.
Forked from iron-ajax due to below issue and it adds access token to the header when a request is made.
With auto
set to true
, the element performs a request whenoeer
its url
, params
or body
properties are changed. Automatically generated
requests will be debounced in the case that multiple attributes are changed
sequentially.
Note: The params
attribute must be double quoted JSON.
You can trigger a request explicitly by calling generateRequest
on the
element.
<oe-request>
oe-request can be used to perform XMLHttpRequests.
...this.$.xhr.send({url: url, body: params});