Skip to content

Instantly share code, notes, and snippets.

@jeffposnick
Last active August 29, 2015 14:22
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 jeffposnick/3649274125d5edd674b0 to your computer and use it in GitHub Desktop.
Save jeffposnick/3649274125d5edd674b0 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Polymer 1.0.2 Template</title>
<script src="https://cdn.rawgit.com/webcomponents/webcomponentsjs/master/webcomponents.js"></script>
<link rel="import" href="https://cdn.rawgit.com/Polymer/polymer/v1.0.2/polymer.html">
</head>
<body>
<template is="dom-bind" id="page-template">
<template>
<select>
<option template repeat="[[arr]]">[[item]]</option>
</select>
</template>
</template>
<script>
document.querySelector('#page-template').arr = ['one', 'two', 'three'];
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment