Skip to content

Commit c2c7a2a

Browse files
committed
use @controller in example
1 parent 9eb2719 commit c2c7a2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/release/routing/linking-between-routes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@ the currently active one, you can pass an array of model objects using the
193193

194194
```gjs {data-filename=app/templates/photos.gjs}
195195
import { LinkTo } from '@ember/routing';
196+
196197
<template>
197198
<h1>Latest Comments</h1>
198199
199200
<ul>
200-
{{#each this.latestComments as |comment|}}
201+
{{#each @controller.latestComments as |comment|}}
201202
<li>
202203
<LinkTo @route="photos.photo.comment" @models={{array comment.photo comment}}>
203204
{{excerpt comment.body}}...

0 commit comments

Comments
 (0)