mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -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')
|
||
|
});
|