Skip to content

Commit

Permalink
[DOC] Mark replaceWith and replaceRoute as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Oct 22, 2021
1 parent 61be2e1 commit 50359b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@ember/-internals/routing/lib/ext/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ ControllerMixin.reopen({
@method replaceRoute
@return {Transition} the transition object associated with this
attempted transition
@deprecated Use replaceWith from the Router service instead.
@public
*/
replaceRoute(...args: string[]) {
Expand Down
1 change: 1 addition & 0 deletions packages/@ember/-internals/routing/lib/system/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ class Route extends EmberObject.extend(ActionHandler, Evented) implements IRoute
@return {Transition} the transition object associated with this
attempted transition
@since 1.0.0
@deprecated Use replaceWith from the Router service instead.
@public
*/
replaceWith(...args: any[]) {
Expand Down

0 comments on commit 50359b0

Please sign in to comment.