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

Add deprecation for Route#router #3211

Closed
Closed
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/v3.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,22 @@ object.notifyPropertyChange('someProperty');
##### id: ember-metal.getting-each

Calling `array.get('@each')` is deprecated. `@each` may only be used as dependency key.

#### Router#route

##### until: 3.5.0
##### id: ember-routing.route-router

The `Router#route` private API has been renamed to `Router#_route` to avoid colliding with user defined
properties or methods.
If you want access to the router, you are probably better served injecting the router service into
the route like this:

```javascript
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default Route.extend({
router: service()
});
```