Last active
January 4, 2017 22:39
-
-
Save ryanflorence/9273062 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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