Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 989 Bytes

File metadata and controls

40 lines (27 loc) · 989 Bytes

ember/template-no-link-to-positional-params

💼 This rule is enabled in the 📋 template-lint-migration config.

Disallow positional params in LinkTo component

Rule Details

Positional parameters in <LinkTo> components are deprecated. Use named arguments instead.

Examples

Examples of incorrect code for this rule:

<template>
  {{! Old positional params style }}
  <LinkTo "posts.post" @model={{this.post}}>Post</LinkTo>
</template>

Examples of correct code for this rule:

<template>
  <LinkTo @route="posts.post" @model={{this.post}}>Post</LinkTo>
</template>
<template>
  <LinkTo @route="index">Home</LinkTo>
</template>

References