Skip to content

access active link state in the context#14991

Closed
fly1ted wants to merge 1 commit intoemberjs:masterfrom
fly1ted:patch-1
Closed

access active link state in the context#14991
fly1ted wants to merge 1 commit intoemberjs:masterfrom
fly1ted:patch-1

Conversation

@fly1ted
Copy link

@fly1ted fly1ted commented Mar 9, 2017

I had a use-case where I needed a simple way to change an element inside {{#link-to}} so not to write additional css targeting that list. Exposing this helps to solve this.

{{#link-to 'foo' classNames="" as |l|}}
  <i class="Icon Icon--messages"></i>
  {{#unless l.active}}
    <span class="">
      bar
    </span>
  {{/unless}}
{{/link-to}}

I had a use-case where I needed a simple way to change an element inside {{#link-to}} so not to write additional css targeting that list. Exposing this helps to solve this.
@bekzod
Copy link
Contributor

bekzod commented Nov 30, 2017

I think #15835 is less obtrusive way which going for RFC too

@locks
Copy link
Contributor

locks commented Dec 20, 2017

Superseded by #15835, thanks!

@locks locks closed this Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants