Talk is cheap, show me the code.
Last weekend I got the IKEA TRÅDFRI kit for my new lamps. It worked OK initially but the app could not connect to gateway after done setup. Since Homekit has always being on my TODO list and controlling lights thru app isn’t quite convenient…
ES6 is coming with a new way to define anonymous function. As a big fan of higher level function, I cannot love it more! Here is why it is awesome
// ES5activeUsers = users.filter(function (user) {…
In many cases, we would want to rollback user’s change to a model when user is navigating away from the edit page. In this case, the best place to trigger the rollback should be the willTransition action.
Ember.Route.extend(_M…
I was looking for a way to rollback an Ember model when the user wants to discard all the changes. Even tho DS.Model has a rollback() method, it has never rollback the data successfully.
Always use {{#each item in items}} syntax to avoid context replacing.
In Handlebars template, you can iterate through an array of objects with the {{#each}} block helper…