Skip to content

Instantly share code, notes, and snippets.

@ckimrie
Last active April 1, 2016 09:22
Show Gist options
  • Save ckimrie/22718bfead15b8903b9f7a616342d19f to your computer and use it in GitHub Desktop.
Save ckimrie/22718bfead15b8903b9f7a616342d19f to your computer and use it in GitHub Desktop.
<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