3
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
Code distributed by Google as part of the polymer project is also
8
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
15
<title>iron-list demo</title>
17
<meta charset="utf-8">
18
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no">
19
<meta name="mobile-web-app-capable" content="yes">
20
<meta name="apple-mobile-web-app-capable" content="yes">
22
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
24
<link rel="import" href="../../polymer/polymer.html">
25
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
26
<link rel="import" href="../../iron-ajax/iron-ajax.html">
27
<link rel="import" href="../iron-list.html">
29
<style is="custom-style">
37
border-bottom: 1px solid #ccc;
45
<template is="dom-bind">
46
<iron-ajax url="data/contacts.json" last-response="{{data}}" auto></iron-ajax>
48
<iron-list items="[[data]]" as="item">
51
<b>#[[index]] - [[item.name]]</b>
52
<p>[[item.longText]]</p>