We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ember-link
LinkTo
1 parent c85a641 commit bb92695Copy full SHA for bb92695
app/components/crate-row.hbs
@@ -1,14 +1,11 @@
1
<div local-class="crate-row" data-test-crate-row ...attributes>
2
<div local-class="description-box">
3
<div>
4
- <LinkTo
5
- @route="crate"
6
- @model={{@crate.id}}
7
- local-class="name"
8
- data-test-crate-link
9
- >
10
- {{ @crate.name }}
11
- </LinkTo>
+ {{#let (link "crate" @crate.id) as |l|}}
+ <a href={{l.url}} local-class="name" data-test-crate-link {{on "click" l.transitionTo}}>
+ {{@crate.name}}
+ </a>
+ {{/let}}
12
<span local-class="version" data-test-version>v{{@crate.max_version}}</span>
13
<CopyButton
14
@copyText='{{@crate.name}} = "{{@crate.max_version}}"'
0 commit comments