Last active
August 29, 2015 14:11
-
-
Save nikrich/32cca620d670a097cf7e to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<polymer-element name="reddit-element" attributes="subreddit"> | |
<template> | |
<style> | |
</style> | |
<core-ajax url="http://www.reddit.com//r/aww/about.json" handleas="json" auto response="{{ resp }}" loading id="core_ajax" hidden></core-ajax> | |
<p id="p">{{ resp.data.public_description }}</p> | |
</template> | |
<script> | |
Polymer({ | |
subreddit: 'aww', | |
resp: null | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment