Skip to content

Commit c03e910

Browse files
author
ignace
committed
docs: use relative imports
1 parent af94444 commit c03e910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/release/components/template-tag-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The template tag format uses strict template semantics. This means that you can
6767
When making use of the "Avatar" component as defined before in a different component file, it first needs to be imported. This is done using the `import` statement, just like you would import any other JavaScript module.
6868

6969
```text {data-filename="app/components/message.gjs"}
70-
import Avatar from 'app/components/avatar';
70+
import Avatar from './avatar';
7171
7272
<template>
7373
<Avatar
@@ -112,7 +112,7 @@ For example, when moving the "Avatar" component to the `app/components/messages`
112112
This quirk is no longer necessary with the template tag format. Instead, importing now works the same as importing any other JavaScript module.
113113

114114
```text {data-filename="app/components/avatar-usage.gjs"}
115-
import Avatar from 'app/components/messages/avatar';
115+
import Avatar from './messages/avatar';
116116
117117
<template>
118118
<Avatar

0 commit comments

Comments
 (0)