Repository navigation
Add template reference, component reference, and typescript reference - #2248
NullVoxPopuli wants to merge 5 commits into
Conversation
✅ Deploy Preview for ember-guides ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Minor nitpick:
A template-only component doesn't provide a class X {
message = 'hi'
get someComponent() {
// works
return <template>{{this.message}}</templ
}
}I don't know if this is worth explaining in detail, it's more like something that just should work if somebody happens to try it. Maybe the wording can be loosened to focus on the positive case: "A template inside a class can use |
|
todos:
|
ad2956e to
ad8cfb0
Compare
ad8cfb0 to
5d23fd2
Compare
|
The additional pages aren't showing in the sidebar? |
A heading entry with pages renders as a collapsible group that links to toc-heading_reference. The page tree also drops heading entries, so the three pages had no section, no highlight, and no previous/next links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…v-section Show Reference as a nav section with Template, Component, and TypeScript
|
|
||
| Use `@name` in the template. | ||
| Use `this.args.name` in the class. | ||
| A getter that reads an argument computes again when the argument changes. |
There was a problem hiding this comment.
Should this say that args are automatically tracked and also update the template when they are changed?
|
|
||
| ### Do something on creation | ||
|
|
||
| The `constructor` runs one time, when Ember creates the component. |
There was a problem hiding this comment.
| The `constructor` runs one time, when Ember creates the component. | |
| The `constructor` runs one time, when Ember creates the component instance. |
| } | ||
| ``` | ||
|
|
||
| A Glimmer component has no hooks for render or update. |
There was a problem hiding this comment.
| A Glimmer component has no hooks for render or update. |
This statement only makes sense if comparing to old components, but this is a going-forward, living reference.
Adds
/release/reference/templates/, a single page that lists everything you can write in an Ember<template>, with a short example for each. Ported from the Ember.js cheat sheet and updated for Ember 7.1+.gjs/.gts.{{#if ...}},(fn ...),{{{ ... }}}) so the "On this page" sidebar fits/reference/now redirects to this page instead of the Octane upgrade guideHeads-up: headings can't contain
", becauseshowdown-section-groupsreads heading ids with a greedy regex and breaks the HTML.🤖 Generated with Claude Code