mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
13 lines
302 B
Text
13 lines
302 B
Text
|
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')
|
||
|
});
|