mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
12 lines
302 B
JavaScript
12 lines
302 B
JavaScript
export default Ember.Component.extend({
|
|
tagName: 'li',
|
|
classNameBindings: ['active'],
|
|
|
|
router: function() {
|
|
return this.container.lookup('router:main');
|
|
}.property(),
|
|
|
|
active: function() {
|
|
return this.get('router').isActive(this.get('route'));
|
|
}.property('router.url', 'route')
|
|
});
|