diff --git a/packages/@ember/-internals/routing/lib/services/router.ts b/packages/@ember/-internals/routing/lib/services/router.ts index 3ece9b6c63e..edba059c540 100644 --- a/packages/@ember/-internals/routing/lib/services/router.ts +++ b/packages/@ember/-internals/routing/lib/services/router.ts @@ -92,7 +92,8 @@ export default class RouterService extends Service { See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info. In the following example we use the Router service to navigate to a route with a - specific model from a Component. + specific model from a Component in the first action, and in the second we trigger + a query-params only transition. ```app/components/example.js import Component from '@glimmer/component'; @@ -106,6 +107,13 @@ export default class RouterService extends Service { goToComments(post) { this.router.transitionTo('comments', post); } + + @action + fetchMoreComments(latestComment) { + this.router.transitionTo({ + queryParams: { commentsAfter: latestComment } + }); + } } ```