From a9cd02449add3e38ba50263a17ccf9e152b7bf9e Mon Sep 17 00:00:00 2001 From: Yuvaraja Balamurugan Date: Fri, 29 Mar 2019 06:16:23 +0530 Subject: [PATCH 1/2] {{link-to}} --> :rocket: --- .../release/routing/specifying-a-routes-model.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/guides/release/routing/specifying-a-routes-model.md b/guides/release/routing/specifying-a-routes-model.md index c3536a29bb..3d2288c1df 100644 --- a/guides/release/routing/specifying-a-routes-model.md +++ b/guides/release/routing/specifying-a-routes-model.md @@ -86,33 +86,33 @@ method. Note: A route with a dynamic segment will always have its `model` hook called when it is entered via the URL. If the route is entered through a transition (e.g. when using the [link-to](../../templates/links/) Handlebars helper), -and a model context is provided (second argument to `link-to`), then the hook is not executed. +and a model context is provided (by passing in `@model` to ``), then the hook is not executed. If an identifier (such as an id or slug) is provided instead then the model hook will be executed. -For example, transitioning to the `photo` route this way won't cause the `model` hook to be executed (because `link-to` -was passed a model/): +For example, transitioning to the `photo` route this way won't cause the `model` hook to be executed (because `` +was passed a model): ```handlebars {data-filename=app/templates/photos.hbs}

Photos

{{#each this.model as |photo|}}

- {{#link-to "photo" photo}} + {{photo.title}} - {{/link-to}} +

{{/each}} ``` -while transitioning this way will cause the `model` hook to be executed (because `link-to` was passed `photo.id`, an +while transitioning this way will cause the `model` hook to be executed (because `` was passed `photo.id`, an identifier, instead): ```handlebars {data-filename=app/templates/photos.hbs}

Photos

{{#each this.model as |photo|}}

- {{#link-to "photo" photo.id}} + {{photo.title}} - {{/link-to}} +

{{/each}} ``` From ba92ad09b82b2429aa85d77102397e76e787031e Mon Sep 17 00:00:00 2001 From: Yuvaraja Balamurugan Date: Sat, 30 Mar 2019 07:34:17 +0530 Subject: [PATCH 2/2] Change link-to to --- guides/release/routing/specifying-a-routes-model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/release/routing/specifying-a-routes-model.md b/guides/release/routing/specifying-a-routes-model.md index 3d2288c1df..44071359d8 100644 --- a/guides/release/routing/specifying-a-routes-model.md +++ b/guides/release/routing/specifying-a-routes-model.md @@ -85,8 +85,8 @@ photo's ID (`params.photo_id`) as an argument to Ember Data's `findRecord` method. Note: A route with a dynamic segment will always have its `model` hook called when it is entered via the URL. -If the route is entered through a transition (e.g. when using the [link-to](../../templates/links/) Handlebars helper), -and a model context is provided (by passing in `@model` to ``), then the hook is not executed. +If the route is entered through a transition (e.g. when using the [``](../../templates/links/) component), +and a model object is provided, then the hook is not executed. If an identifier (such as an id or slug) is provided instead then the model hook will be executed. For example, transitioning to the `photo` route this way won't cause the `model` hook to be executed (because ``