Skip to content

Instantly share code, notes, and snippets.

@hiteshagja
Last active August 29, 2015 14:09
Show Gist options
  • Save hiteshagja/c3dd9785d598ad74761d to your computer and use it in GitHub Desktop.
Save hiteshagja/c3dd9785d598ad74761d to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="greeting-tag">
<template>
<style>
</style>
<ul>
<template repeat="{{s in salutations}}">
<li>
<input id="input" type="text">
</li>
</template>
</ul>
</template>
<script>
Polymer({
ready: function () {
// populate the element’s data model
// (the salutations array)
this.salutations = [
{what: 'Hello', who: 'World'},
{what: 'GoodBye', who: 'DOM APIs'},
{what: 'Hello', who: 'Declarative'},
{what: 'GoodBye', who: 'Imperative'}
];
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment