Skip to content

Instantly share code, notes, and snippets.

@reekotubbs
Created November 6, 2014 23:32
Show Gist options
  • Save reekotubbs/837936710b843a136d68 to your computer and use it in GitHub Desktop.
Save reekotubbs/837936710b843a136d68 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/core-ajax/core-ajax.html">
<polymer-element name="test-element" attributes="q">
<template>
<core-ajax auto url="http://gdata.youtube.com/feeds/api/videos/"
params='{"alt":"json", "q":"{{q}}"}'
handleAs="json" response="{{response}}"></core-ajax>
<template repeat="{{response.feed.entry}}">
<div>{{title.$t}}</div>
</template>
</template>
<script>
Polymer({
response: null,
});
</script>
</polymer-element>
<test-element q="chrome"></test-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment