OLD | NEW |
| (Empty) |
1 iron-ajax | |
2 ========= | |
3 | |
4 The `iron-ajax` element exposes network request functionality. | |
5 | |
6 ```html | |
7 <iron-ajax | |
8 auto | |
9 url="http://gdata.youtube.com/feeds/api/videos/" | |
10 params='{"alt":"json", "q":"chrome"}' | |
11 handle-as="json" | |
12 on-response="handleResponse"></iron-ajax> | |
13 ``` | |
14 | |
15 With `auto` set to `true`, the element performs a request whenever | |
16 its `url`, `params` or `body` properties are changed. Automatically generated | |
17 requests will be debounced in the case that multiple attributes are changed | |
18 sequentially. | |
19 | |
20 Note: The `params` attribute must be double quoted JSON. | |
21 | |
22 You can trigger a request explicitly by calling `generateRequest` on the | |
23 element. | |
OLD | NEW |