Blame view

bower_components/iron-ajax/README.md 730 Bytes
c5169e0e   Renato De Donato   a new hope
1
2
  iron-ajax
  =========
73bcce88   luigser   COMPONENTS
3
4
5
  
  The `iron-ajax` element exposes network request functionality.
  
c5169e0e   Renato De Donato   a new hope
6
7
8
9
10
11
12
  ```html
  <iron-ajax auto
      url="https://www.googleapis.com/youtube/v3/search"
      params='{"part":"snippet", "q":"polymer", "key": "AIzaSyAuecFZ9xJXbGDkQYWBmYrtzOGJD-iDIgI", "type": "video"}'
      handle-as="json"
      last-response="{{ajaxResponse}}"></iron-ajax>
  ```
73bcce88   luigser   COMPONENTS
13
14
15
16
17
18
19
20
21
22
  
  With `auto` set to `true`, the element performs a request whenever
  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.