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
0
votes
1 answer

The data saved in local storage but when refresh not show

I am going to Todo List by Angular. I use local storage to save todo items but when I refresh the data not shown, although the data saved in a tab application. This is firebase link: https://gtodomvc.web.app/ This is stackBlitz link:…
Giang Giang
  • 31
  • 1
  • 1
  • 6
0
votes
1 answer

In the Redux todo example create "copy" function

In the Redux Todo example. https://github.com/reactjs/redux/tree/master/examples/todomvc How would you approach creating a "copy" functionality. Basically, adding a new todo using existent todo data (name of the todo). I was wondering if this is…
carkod
  • 1,844
  • 19
  • 32
0
votes
1 answer

What's the purpose of two exclamation marks before a variable?

I'm studying the TodoMVC source and came across this helper: // addEventListener wrapper: window.$on = function (target, type, callback, useCapture) { target.addEventListener(type, callback, !!useCapture); }; What's up with !!useCapture?
Kayce Basques
  • 23,849
  • 11
  • 86
  • 120
0
votes
1 answer

How does todomvc Backbone's change to class 'editing' make todo editable?

I'm going through Backbone tutorial and looking through the source code I don't understand the the doubleclicking event (todo-view.js), which leads to the edit method, which leads to the element getting the class 'editing' make the element (input)…
akantoword
  • 2,824
  • 8
  • 26
  • 43
0
votes
2 answers

How to reverse the display order of my tasks in angularJS?

I have a to do list with tasks. Once new tasks are created with my todoController, they are displayed in order from oldest to latest. However, I want the latest task to be displayed on top. How do I go about it ? Here is my…
codigomonstruo
  • 1,081
  • 1
  • 11
  • 45
0
votes
0 answers

How to create a note like this TodoMvc example

i want to create a note form like this under link using jQuery Html Css Js. http://todomvc.com/examples/flight/ here is my html code:
enter text
Duc Hop Tran
  • 51
  • 1
  • 2
  • 8
0
votes
1 answer

NPM cannot find module from same folder on Windows with TodoMVC tutorial

PS C:\Users\Codey55\temp> npm run build > todomvc-flux@0.0.3 build C:\Users\Codey55\temp > set NODE_ENV=production browserify . | uglifyjs -cm > js/bundle.min.js PS C:\Users\Codey55\temp> npm start > todomvc-flux@0.0.3 start…
Codey_55
  • 33
  • 1
  • 3
0
votes
1 answer

Backbone.js View on TodoMVC: function and it's argument and how does it works

I am studying Backbone.js through the example todomvc application from here: http://todomvc.com/architecture-examples/backbone/ And I'm sort of stuck in the app-view.js part here:…
Anzhari
  • 47
  • 1
  • 8
0
votes
1 answer

Why is the new operator used for collections in todomvc dependency example

I am reading through the todomvc Backbone dependency example and noticed that the 'new' operator is used to create new collections, however the views, models, and routers, return the object itself. Why is the new operator required for collections?…
Matt
  • 4,462
  • 5
  • 25
  • 35
0
votes
1 answer

It seems that there is a flaw with Backbone.js TodoMVC application

This refers to http://todomvc.com/architecture-examples/backbone/. In app.AppView the render() method gets called many times when adding a single todo. If I'm not mistaking, having the render() method being called many times is bad. Is this a flaw…
SBel
  • 3,315
  • 6
  • 29
  • 47
0
votes
1 answer

TodoMVC with angular-typescript

I am learning Typescript and Angular and I just fixed a problem with an unregistered controller because the script for the controller was loaded after the script for the application module. So I looked at index.html in the TodoMVC sample to see how…
pthalacker
  • 2,056
  • 3
  • 20
  • 37
0
votes
1 answer

In todomvc backbone example, why use event bind instead of routes in controller?

For example, in app-view.js, I see some event bind: events: { 'keypress #new-todo': 'createOnEnter', 'click #clear-completed': 'clearCompleted', 'click #toggle-all': 'toggleAllComplete' }, but in my opinion, the…
hh54188
  • 14,887
  • 32
  • 113
  • 184
0
votes
1 answer

marionette todomvc extend error

TodoMVC.module "TodoList", (TodoList, App, Backbone, Marionette, $, _) -> # TodoList Router # --------------- # # Handle routes to show the active vs complete todo items TodoList.Router = Marionette.AppRouter.extend appRoutes:…
Devin
  • 2,113
  • 2
  • 22
  • 28
0
votes
1 answer

TodoMVC with backbone and require cannot fetch from server

There are a number of questions like this. I have not found an answer. Using the example TodoMVC with backbone.js and require.js, I want to fetch from the server not from localstorage. I have an url that return a proper json collection, where the…
Carsten
  • 5
  • 1
0
votes
2 answers

Why does the Todos MVC ember demonstration app produce a slow script warning in IE8?

I am just beginning to learn how to use Ember and am evaluating it along with other JavaScript MV* libraries/frameworks/conventions. So far I am impressed by ember's architecture and performance. However, one of the requirements that my…
jacobq
  • 11,209
  • 4
  • 40
  • 71