Skip to content

Instantly share code, notes, and snippets.

@liamfiddler
Last active September 29, 2016 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liamfiddler/5cf2c75bc718b06568bbf48c5f2a5230 to your computer and use it in GitHub Desktop.
Save liamfiddler/5cf2c75bc718b06568bbf48c5f2a5230 to your computer and use it in GitHub Desktop.
Creating a Web Component with Polymer - Part 1 - 01 Skeleton
<link rel="import" href="../polymer/polymer.html">
<!--
`my-listfilter`
A filterable list component
@demo demo/index.html
-->
<dom-module id="my-listfilter">
<template>
<style>
:host {
display: block;
}
</style>
<h2>Hello [[prop1]]</h2>
</template>
<script>
Polymer({
is: 'my-listfilter',
properties: {
prop1: {
type: String,
value: 'my-listfilter',
},
},
});
</script>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment