mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -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')
|
|
});
|