Skip to content

Instantly share code, notes, and snippets.

@kikill95
Created November 6, 2015 11:10
Show Gist options
  • Save kikill95/e63a6cafc11688de3b91 to your computer and use it in GitHub Desktop.
Save kikill95/e63a6cafc11688de3b91 to your computer and use it in GitHub Desktop.
Kirill G. - little dive into Polymer
<link rel="import"
href="../bower_components/polymer/polymer.html">
<link rel="import"
href="../bower_components/paper-input/paper-input.html">
<link rel="import"
href="../bower_components/paper-spinner/paper-spinner.html">
<dom-module id="my-el-2">
<template>
<style>
p {
background-color: #ccc;
border-radius: 8px;
padding: 4px;
}
</style>
<p>
This is a <strong>{{owner}}</strong>'s my-el.
</p>
<paper-input value="{{owner}}" label="Input label">
</paper-input>
<paper-spinner alt="Loading contacts list" active></paper-spinner>
</template>
<script>
Polymer({
is: "my-el-2",
properties: {
owner: String
}
});
</script>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment