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