Skip to content

Instantly share code, notes, and snippets.

@ianpetzer
Created June 22, 2013 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianpetzer/5836020 to your computer and use it in GitHub Desktop.
Save ianpetzer/5836020 to your computer and use it in GitHub Desktop.
App = Ember,Application.create({
currentPath: ''
});
ApplicationController : Ember.Controller.extend({
currentPathDidChange: function() {
App.set('currentPath', this.get('currentPath'));
}.observes('currentPath')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment