Last active
April 1, 2016 09:22
-
-
Save ckimrie/22718bfead15b8903b9f7a616342d19f to your computer and use it in GitHub Desktop.
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="https://www.polymer-project.org/1.0/components/polymer/polymer.html"> | |
<dom-module id="component-1"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
} | |
.red-box { | |
background-color: red; | |
color: white; | |
padding: 10px; | |
} | |
</style> | |
</template> | |
<script> | |
(function() { | |
'use strict'; | |
Polymer({ | |
is: 'component-1', | |
properties: { | |
foo: { | |
type: String, | |
value: 'component-1', | |
notify: true | |
} | |
} | |
}); | |
})(); | |
</script> | |
</dom-module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment