Questions tagged [todomvc]

TodoMVC is a project which offers the same Todo application implemented using MV* concepts in most of the popular JavaScript MV* frameworks of today.

TodoMVC is a project which offers the same Todo application implemented using MV* concepts in most of the popular JavaScript MV* frameworks of today.

TodoMVC is licensed under the MIT License and can be found on GitHub.

50 questions
6
votes
1 answer

TodoMVC - Ember.run.once

I've been working on the Todo MVC App for Ember. In the model, I noticed a call to a commit() method wrapped in Ember.run.once See: https://github.com/addyosmani/todomvc/blob/gh-pages/architecture-examples/emberjs/js/models/todo.js#L9 todoDidChange:…
Rushi
  • 1,652
  • 3
  • 17
  • 24
6
votes
2 answers

Understanding TodoMVC Example

Starting to learn node.js and backbone.js and am using the TodoMVC example as my guide. There are a couple parts I am having trouble wrapping my head around. See below. Here is app.js. var express = require('express') , http = require('http') ,…
4
votes
1 answer

In TodoMVC what is data-framework="backbonejs" on the element for?

I found in the index.html of the TodoMVC example the following line of code: Does anybody know for this data element is used for?
SBel
  • 3,315
  • 6
  • 29
  • 47
3
votes
1 answer

A learning application for popular web frameworks, like TodoMVC

First of all, to the moderators, don't get angry if this is not the right place to post this :). I wondre if there is something like the TodoMVC for popular web frameworks like Django, Rails, Symfony and etc. If there is not something like this,…
Omid Kamangar
  • 5,768
  • 9
  • 40
  • 69
3
votes
1 answer

NPM error when trying to install React.js TODO-MVC Tutorial

I am trying to install the react.js flux-todomvc tutorial from github (link), but after cloning the repo, running NPM install, and then running NPM start, NPM returns an error that looks like this: peter@peter-ThinkPad-X220…
psvj
  • 8,280
  • 8
  • 30
  • 44
3
votes
0 answers

Ember.js ToDoMVC - Chrome firing ObjectController action multiple times

I have been following the getting started guide for ember. I have come to the parts that deal with editing and removing items and have come across a problem that seems to occur in chrome but not firefox. The custom component "edit-todo" has 2 events…
cutts
  • 574
  • 1
  • 5
  • 20
3
votes
1 answer

Confused about the difference between TodoMVC app and todolist module in the backbone.marionette version

I'm in the process of structuring my first backbone.marionette app and there are some things I find confusing. In the backbone.marionette version of TodoMVC there seem to be two different modules performing the work of the App: First there is…
hejsan
  • 371
  • 2
  • 7
2
votes
1 answer

Auto-generate model definitions from existing ArangoDB database

I'm using ArangoDB 3.4 and planning to use an MVC framework like Backbone.js (or whatever is recommended). Is there a way to auto-generate the models from the existing database to reduce the amount of boilerplate code I have to write by hand? For…
BugBuddy
  • 576
  • 2
  • 5
  • 19
2
votes
2 answers

How to implement saving of order of todos / list?

I am developing an application which is very similar to todo list in its nature, except order of todos matters and can be changed by user. What's a good way to save this order in db without having to re-save whole todo list upon change of order? I…
Aurimas
  • 2,577
  • 5
  • 26
  • 37
2
votes
0 answers

How should I integrate flux into create-react-app?

I implemented flux on top of a create-react-app application using the flux todomvc example as the point-of-departure: AppView renders the create-react-app App component AppContainer exports AppView (just like the todomvc) index.js renders…
Chuck Han
  • 594
  • 1
  • 6
  • 12
2
votes
2 answers

Assertion Failed: The value that #each loops over must be an Array error. What am I doing wrong?

I am following Ember's TodoMVC tutorial and I am stuck. Basically, I defined 2 controllers. This is todos.js import Ember from "ember"; export default Ember.ArrayController.extend({ actions:{ createTodo: function(){ var…
rreyes1979
  • 1,855
  • 3
  • 23
  • 34
2
votes
1 answer

TodoMVC with ember, id does not increment

I am following the getting started guide from emberjs, and am at the point where I can add todos. My problem is though that when I add a todo it has an id value of null - is there a practical way to auto increment this? var TodosController =…
Julien Vincent
  • 1,210
  • 3
  • 17
  • 40
2
votes
1 answer

Ember TodoMVC app with Rails backend No 'Access-Control-Allow-Origin' header is present

I'm trying to follow the Ember Getting Started guide and build a TodoMVC app but use Ember-CLI with Rails as a backend. Unfortunately I'm running into an issue with cross site domain stuff. I'm getting this error message with I try and do a post…
Blake Erickson
  • 755
  • 1
  • 9
  • 28
2
votes
1 answer

Durandal TodoMVC - Cannot write a value to a ko.computed

I'm trying to build a version of the todo app using Durandal (including Knockout + RequireJS) from a TodoMVC template. I realize that a todo app doesn't really show off the features of Durandal, but I'm on the learning path and figured it would be a…
Rob Sawyer
  • 2,163
  • 1
  • 24
  • 25
1
vote
0 answers

How can I understand the "asyncTime" in TodoMVC benchmark test?

I wanted to do performance benckmark test among my javascript framework and other frameworks.And I found the "TodoMVC" benchmark test.A lot of people use the result of this test.It seems reasonable.But I can't understand the "asyncTime" of this…
YangChen
  • 213
  • 1
  • 2
  • 7
1
2 3 4