Skip to content

Instantly share code, notes, and snippets.

@hanguokai
Last active August 29, 2015 14:06
Show Gist options
  • Save hanguokai/12ded39bf7089d449815 to your computer and use it in GitHub Desktop.
Save hanguokai/12ded39bf7089d449815 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element" attributes="owner">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
</style>
<b id="b">{{ owner }}</b>
</template>
<script>
Polymer('my-element', {
ready: function () {
this.owner = 'Rafael';
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment