geekygrappler / ember-cli-todo-mvc

Ember CLI tutorial making todo-mvc app
30 stars 14 forks source link

Not a issue about code here but your blog post - close it any time #3

Closed jusfeel closed 1 year ago

jusfeel commented 9 years ago

http://thetechcofounder.com/getting-started-with-ember-js-using-ember-cli/

Even your blog is written one year ago, your post still the No. 2 recent tutorial on Ember-Watch. Along reading it, I found some small not-hurtful bump that confused me for a while.

  1. We need to replicate the name of the action on the template, so let's do that in app/templates/todos.js. -should be ".hbs"
  2. This is what I got after generate active and complete route, so I have to manually change it to yours.

Router.map(function() { this.resource('todos', { path: '/' }); this.route('todos', function() { this.route('active'); this.route('complete'); }); });

  1. Maybe add todo.save on deleteTodo since you have that for clearCompleted

    deleteTodo: function(todo) {
       todo.deleteRecord();
       todo.save();
    }
  2. In allAreDone, missing "model." before @each

    .property('model.@each.isCompleted')