Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 711 Bytes

File metadata and controls

43 lines (30 loc) · 711 Bytes

ember/template-no-page-title-component

Disallows usage of the <PageTitle> component.

Rule Details

Use the {{pageTitle}} 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>
  {{pageTitle "My Page"}}
</template>
<template>
  {{pageTitle this.dynamicTitle}}
</template>

References