Created
November 6, 2015 11:10
-
-
Save kikill95/e63a6cafc11688de3b91 to your computer and use it in GitHub Desktop.
Kirill G. - little dive into Polymer
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="../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