Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Document currentWhen deprecation #3154

Merged
merged 1 commit into from
Jan 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions source/deprecations/v2.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ let lastName = 'Doe';
`Hello ${lastName}, ${firstName}` // "Hello Doe, John"
```

#### Link-to's `currentWhen`

##### until: 3.0.0
##### id: ember-routing-view.deprecated-current-when

When developers wanted to customize in what route a `{{link-to}}` should be considered "active" they
could pass it using `currentWhen`.

```handlebars
{{#link-to 'item' currentWhen='index'}}
```

Now `currentWhen` is deprecated in favour of the hyphenated `current-when`, with the exact
same semantics:

```handlebars
{{#link-to 'item' current-when='index'}}
```

### Deprecations Added in 2.1

#### Initializer Arity
Expand Down