Last active
December 27, 2017 17:32
-
-
Save kcmr/782c8520d0338771b435f79e0d5669e9 to your computer and use it in GitHub Desktop.
one-way data binding in Polymer
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
<dom-module id="my-component"> | |
<template> | |
<paper-toast text="[[greeting]]"></paper-toast> | |
</template> | |
<script> | |
Polymer({ | |
is: 'my-component', | |
properties: { | |
greeting: { | |
type: String, | |
value: 'Hello' | |
} | |
} | |
}); | |
</script> | |
</dom-module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment