Skip to content
Menu
Justin Ball
  • About
  • Privacy Policy
Justin Ball

Month: August 2013

Don’t miss the ‘.’ – Computed Property that depends on Ember.ArrayController contents

Posted on August 30, 2013November 1, 2021

My fun/stupid ember mistake of the day. I even put together a jsbin to help track down the problem. It’s a tiny problem that is hard to spot. Right there at the very end there’s a property declared like this: property(‘selectedContacts.@each’) </pre> It wasn’t always that way. Once there was this: property(‘selectedContacts@each’) </pre> The difference…

Help with Ember.js

Posted on August 30, 2013November 1, 2021

So you’ve discovered the most awesome front end javascript framework ever or at least that’s what the cool kids are saying. Now you want so help. Besides StackOverflow here are a few resources that might be helpful: The Ember API docs. Bootstrap for Ember Demo (The code) There’s also: Ember Bootstrap (The code) Ember video…

Immutable Arrays in Ember.js

Posted on August 29, 2013November 1, 2021

I ran into another interesting situation with ember.js today. We make a request to the server to get a collection of objects for the application route. That request sends parameters that the server uses to filter the results which means that ember will give you an immutable object. The code is pretty typical and looks…

Passing a value to ember.js view from handlebars template

Posted on August 29, 2013November 1, 2021

This is one of those things that should be easy and it’s probably obvious to most people but it threw me for a while. I wanted to pass a value into my ember.js view at the moment that I declare the view. It’s a static value, just a css class name, so it doesn’t need…

Handle Keyboard events in an Ember.js view

Posted on August 28, 2013October 25, 2021

We ran into a situation where we wanted to be able to close our ember.js view (a modal) when the user pressed the esc key. At first I thought the solution was easy and I ended up with some code like this: App.ModalView = Ember.View.extend({ didInsertElement: function(){ $(document).on(‘keyup’, { _self: this }, this.esc_close); }, esc_close:…

Building with Ember

Posted on August 1, 2013October 25, 2021

We’re currently building a couple of projects for a group at MIT and for a current Techstars company in the Kaplan program which has given us a chance to try out ember.js on real projects. Ember is an incredible framework started by two really smart guys Yehuda Katz Tom Dale. It’s new and it’s hot…

©2025 Justin Ball | Powered by SuperbThemes & WordPress