Home

Awesome

Ember-Cerebral TodoMVC

A TodoMVC fulx implementation using Cerebral and Ember.

TodoMVC

import hbs from 'htmlbars-inline-precompile';
import CerebralMixin from 'ember-cerebral/mixins/cerebral-mixin';

export default Ember.Component.extend(CerebralMixin, {
  cerebralProps() {
    return {
      currentlyEditingTodoIds: 'currentlyEditingTodoIds'
    }
  },

  isEditing: Ember.computed('currentlyEditingTodoIds', 'todo', function() {
    return this.get('currentlyEditingTodoIds').includes(this.get('todo.id'));
  }),

  layout: hbs`
    <li>
      <input type="checkbox">
			{{#if isEditing}}
				{{edit-todo todo=todo}}
			{{/if}}
    </li>
  `
});

Thanks

Thanks to Toran Billups (@toranb) who's screencast on ember-redux inspired this integration.


Prerequisites

You will need the following things properly installed on your computer.

Installation

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

Building

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links