« All deprecation guides
Deprecation Guide for
Link-to's
Deprecation Guide for
Link-to's currentWhen
until: 3.0.0
id: link-to-s-code-currentwhen-code
When developers wanted to customize in what route a {{link-to}} should be considered "active" they
could pass it using currentWhen.
{{#link-to 'item' currentWhen='index'}}
Now currentWhen is deprecated in favour of the hyphenated current-when, with the exact
same semantics:
{{#link-to 'item' current-when='index'}}