Databind iron-ajax JSON response entry to nested Polymer custom elements
问题 I've got a Polymer app running an iron-ajax call to a service that returns a json string: { "name": "John" } The Polymer code on the main page is: <link rel="import" href="/elements/my-form.html"> <dom-module id="my-app"> <template> ... <iron-ajax auto url="/grabData" handle-as="json" last-response="{{data}}"></iron-ajax> <iron-label> From iron-ajax = {{data.name}} </iron-label> <my-form></my-form> ... "my-form" is: <link rel="import" href="/my-name.html"> <dom-module id="my-form"> <template>