Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Best way to yield the active state of a LinkTo?

$
0
0

@samselikoff wrote:

I’d like to make a {{ui-link-to}} component that basically extends Ember.LinkComponent but yields the active state, so I can use it in the block.

Is there a simple way to do this?

I see LinkComponent has an _active property which I could {{yield}} in my subclass, but that’s private.

I’ve also used the router service in the past to make my own component that effectively reimplements link-to, but I’d like to avoid that if possible.

Any ideas?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles