Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 863 Bytes

File metadata and controls

45 lines (31 loc) · 863 Bytes

ember/template-no-page-title-component

💼 This rule is enabled in the following configs: strict-gjs, strict-gts.

Disallows usage of the <PageTitle> component.

Rule Details

Use the {{page-title}} helper instead of the <PageTitle> component from ember-page-title.

Examples

Examples of incorrect code for this rule:

<template>
  <PageTitle>My Page</PageTitle>
</template>
<template>
  <PageTitle @title="My Page" />
</template>

Examples of correct code for this rule:

<template>
  {{page-title "My Page"}}
</template>
<template>
  {{page-title this.dynamicTitle}}
</template>

References