Last active
September 29, 2016 01:16
-
-
Save liamfiddler/5cf2c75bc718b06568bbf48c5f2a5230 to your computer and use it in GitHub Desktop.
Creating a Web Component with Polymer - Part 1 - 01 Skeleton
This file contains hidden or 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="../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