Last active
September 29, 2016 01:17
-
-
Save liamfiddler/531ebe07f4d0a7a7dfa5d0bf18ca331f to your computer and use it in GitHub Desktop.
Creating a Web Component with Polymer - Part 1 - 02 Input
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> | |
<input value="{{prop1::input}}" /> | |
<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