Skip to content

Convert routing section to route components - #2118

Merged
mansona merged 5 commits into
gjsfrom
gjs-routing
Sep 12, 2025
Merged

mansona merged 5 commits into
gjsfrom
gjs-routing

Conversation

@locks

@locks locks commented Jun 2, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@netlify

netlify Bot commented Jun 2, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for ember-guides ready!

Name Link
🔨 Latest commit 9517054
🔍 Latest deploy log https://app.netlify.com/projects/ember-guides/deploys/685eccfe66000400088ab795
😎 Deploy Preview https://deploy-preview-2118--ember-guides.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

<h1>Posts</h1>
{{!-- Display posts and other content --}}
{{outlet}}
```handlebars {data-filename=templates/posts.gjs}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still in draft I see, but just quickly noticed this should be gjs instead of handlebars for all code blocks.

@locks
locks changed the base branch from master to gjs June 20, 2025 15:32
@mansona
mansona marked this pull request as ready for review June 27, 2025 16:55

@kategengler kategengler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were a few missed spots.

I also think there needs to be a general introduction / explanation that route templates are components (cross-linking to component docs) with special arguments @model and @controller (see https://rfcs.emberjs.com/id/1046-template-tag-in-routes).

I think we should say 'route component' instead of 'template'.

@netlify

netlify Bot commented Sep 12, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for ember-guides ready!

Name Link
🔨 Latest commit f3575c8
🔍 Latest deploy log https://app.netlify.com/projects/ember-guides/deploys/68c497b816a6e500081947f2
😎 Deploy Preview https://deploy-preview-2118--ember-guides.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mansona mansona left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1,3 +1,17 @@
<div class="cta">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm removing this warning because actually we need to add this to every page and we're going to do this differently 👍

}
```

Note that currently, if `model` is not specified, Ember will attempt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for anyone following along, this was deprecated in ember@5 and is now removed so I just removed this paragraph 👍

@mansona
mansona enabled auto-merge September 12, 2025 22:01
@mansona
mansona merged commit f220607 into gjs Sep 12, 2025
@mansona
mansona deleted the gjs-routing branch September 12, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants