Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Last active January 4, 2017 22:39
Show Gist options
  • Save ryanflorence/9273062 to your computer and use it in GitHub Desktop.
Save ryanflorence/9273062 to your computer and use it in GitHub Desktop.
var Ember = require('ember');
module.exports = Ember.View.extend({
attributeBindings: ['route'],
route: function() {
return this.get('controller.currentPath');
}.property('controller.currentPath')
});
// now style by route
// [route="index"] { ... }
// [route="user.edit"] { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment