Skip to content

Instantly share code, notes, and snippets.

Last active January 17, 2018 17:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JaySunSyn/8f1dba2b265a9f6614f9a4857eaf83e1 to your computer and use it in GitHub Desktop.
Step 2
<link rel="import" href="../bower_components/polymer/polymer-element.html">
<link rel="import" href="../bower_components/polymer/lib/elements/dom-repeat.html">
<link rel="import" href="redux/redux-mixin.html">
<dom-module id="todo-list">
<template is="dom-repeat" items="[[todos]]" as="todo">
<li on-click="_remove">[[todo.text]] <span style="color: white">Remove</span></li>
class TodoList extends App.ReduxMixin(Polymer.Element) {
static get is() {
return 'todo-list';
static get properties() {
return {
todos: {
type: Array,
_remove(e) {
window.customElements.define(, TodoList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment