-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adding deprecation information for the rename of Ember.Router.router #2806
Conversation
…o EmberRouter.routerMicrolib
source/deprecations/v2.x.html.md
Outdated
##### until: 2.16.0 | ||
##### id: ember-router.router | ||
|
||
The `router` property of `EmberRouter` has been renamed to `routerMicrolib` to disambiguate it from `router.js`, the microlib used within `EmberRouter`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you slightly rephrase to:
The private
router
property of theEmber.Router
instance (commonly found asthis.router
in Ember.Route instances or viarouter:main
in the container) has been renamed......
source/deprecations/v2.x.html.md
Outdated
|
||
The `router` property of `EmberRouter` has been renamed to `routerMicrolib` to disambiguate it from `router.js`, the microlib used within `EmberRouter`. | ||
|
||
Addon and application developers that are using the internal `router` property of `EmberRouter` should replace those usages with `EmberRouter.routerMicrolib`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets use Ember.Router
instead of EmberRouter
throughout...
source/deprecations/v2.x.html.md
Outdated
|
||
Addon and application developers that are using the internal `router` property of `EmberRouter` should replace those usages with `EmberRouter.routerMicrolib`. | ||
|
||
This example demonstrates a common use case for `EmberRouter.router`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets just say .router
here (e.g. not EmberRouter.router
, but just "the .router
property).
source/deprecations/v2.x.html.md
Outdated
|
||
Before: | ||
|
||
``` javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no space after the backticks
source/deprecations/v2.x.html.md
Outdated
Before: | ||
|
||
``` javascript | ||
Ember.Service.extend({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets say export default Ember.Service.extend({
source/deprecations/v2.x.html.md
Outdated
|
||
After: | ||
|
||
``` javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no space after backticks
source/deprecations/v2.x.html.md
Outdated
After: | ||
|
||
``` javascript | ||
Ember.Service.extend({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default Ember.Service.extend({
This PR adds information related to the rename of
EmberRouter.router
toEmberRouter.routerMicrolib
and the associated deprecation.Related PRs:
emberjs/ember.js#14919
Reviewers
@rwjblue @locks
Changes: