Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: polymer_1.2.3/bower_components/iron-ajax/README.md

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1
2 <!---
3
4 This README is automatically generated from the comments in these files:
5 iron-ajax.html iron-request.html
6
7 Edit those files, and our readme bot will duplicate them over here!
8 Edit this file, and the bot will squash your changes :)
9
10 -->
11
12 [![Build Status](https://travis-ci.org/PolymerElements/iron-ajax.svg?branch=mast er)](https://travis-ci.org/PolymerElements/iron-ajax)
13
14 _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-ajax)_
15
16
17 ##&lt;iron-ajax&gt;
18
19
20 The `iron-ajax` element exposes network request functionality.
21
22 <iron-ajax
23 auto
24 url="http://gdata.youtube.com/feeds/api/videos/"
25 params='{"alt":"json", "q":"chrome"}'
26 handle-as="json"
27 on-response="handleResponse"
28 debounce-duration="300"></iron-ajax>
29
30 With `auto` set to `true`, the element performs a request whenever
31 its `url`, `params` or `body` properties are changed. Automatically generated
32 requests will be debounced in the case that multiple attributes are changed
33 sequentially.
34
35 Note: The `params` attribute must be double quoted JSON.
36
37 You can trigger a request explicitly by calling `generateRequest` on the
38 element.
39
40
41
42 ##&lt;iron-request&gt;
43
44
45 iron-request can be used to perform XMLHttpRequests.
46
47 <iron-request id="xhr"></iron-request>
48 ...
49 this.$.xhr.send({url: url, params: params});
50
OLDNEW
« no previous file with comments | « polymer_1.2.3/bower_components/iron-ajax/CONTRIBUTING.md ('k') | polymer_1.2.3/bower_components/iron-ajax/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698