Skip to content
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
dd7a318
convert quick start to gjs
mansona May 19, 2025
f6e4ac9
Merge pull request #2113 from ember-learn/quickstart-gjs
mansona May 30, 2025
9d1b806
start converting a couple route files
locks Jun 2, 2025
b37e495
update all handlebars code blocks to gjs
mansona Jun 27, 2025
9517054
add a zoey says cta to warn about --strict
mansona Jun 27, 2025
7f94eb7
Updated core concepts / components to use gjs
tcjr Jul 10, 2025
9c5de38
Review updates:
tcjr Jul 15, 2025
f77f313
Typos and whitespace
tcjr Jul 15, 2025
98e4630
Updated autotracking in depth to use gjs
tcjr Jul 15, 2025
e9bbb8f
Properly escape tag in cta note
tcjr Jul 16, 2025
7bae6d4
Update guides/release/components/built-in-components.md
tcjr Jul 17, 2025
2c9aa75
Update guides/release/components/built-in-components.md
tcjr Jul 17, 2025
4084766
Update guides/release/components/built-in-components.md
tcjr Jul 17, 2025
b0433a3
Update guides/release/components/component-state-and-actions.md
tcjr Jul 17, 2025
6f86d10
Update guides/release/components/component-state-and-actions.md
tcjr Jul 17, 2025
0e14105
Update guides/release/components/helper-functions.md
tcjr Jul 17, 2025
2076f05
Update guides/release/components/helper-functions.md
tcjr Jul 17, 2025
6dc6784
Apply suggestions from code review
tcjr Jul 17, 2025
d9a0fb8
Apply suggestions from code review
tcjr Jul 18, 2025
48d9f8a
Apply suggestions from code review
tcjr Jul 18, 2025
0518d16
Updated patterns for components to use gjs
tcjr Jul 18, 2025
83ea5fb
Fixed links to some built-in functions
tcjr Jul 28, 2025
ab28839
Converted accessibility/page-template-considerations to use gjs
tcjr Jul 28, 2025
ebac76d
Converted services to use gjs
tcjr Jul 28, 2025
41b3e0d
Converted typescript invokables to use gts (no diff indicators)
tcjr Jul 28, 2025
8ff7057
Converted typescript gotchas to use gts
tcjr Jul 28, 2025
ef8b5f3
Converted typescript testing to use gts
tcjr Jul 28, 2025
73ffab2
Updated diff markers to gts snippets
tcjr Jul 29, 2025
2e88adf
Converted models to use gjs
tcjr Jul 29, 2025
0b29b30
Updated patterns for actions to use gjs
tcjr Jul 29, 2025
a0ae294
Updated rendering values to use gjs - WIP, imports
tcjr Jul 29, 2025
5591df4
Resolved TODO
tcjr Jul 29, 2025
23453dd
Removed imports; updated text to refer to helper/modifier/component h…
tcjr Jul 30, 2025
fd273c9
apply changes from review
mansona Aug 1, 2025
bc9049e
fix linting
mansona Aug 1, 2025
b39f183
Merge pull request #2124 from tcjr/gjs-components
mansona Aug 1, 2025
f653054
Merge remote-tracking branch 'origin/master' into merge-main
mansona Aug 1, 2025
90de3a1
Merge pull request #2131 from ember-learn/merge-main
mansona Aug 1, 2025
55a2d5a
Changed import paths
tcjr Aug 3, 2025
760e43b
Changed import paths
tcjr Aug 3, 2025
dc2903a
spelling
tcjr Aug 3, 2025
41e2655
Merge branch 'gjs' into gjs-misc
tcjr Aug 3, 2025
3f553bd
Merge branch 'gjs' into gjs-in-depth
tcjr Aug 3, 2025
3341e69
Removed unused reference
tcjr Aug 3, 2025
f540897
Added hash helper when used
tcjr Aug 5, 2025
1e26970
Apply suggestion from @kategengler
tcjr Aug 6, 2025
17e91a7
Apply suggestion from @kategengler
tcjr Aug 6, 2025
87142e1
Apply suggestions from code review
mansona Aug 22, 2025
4cf7ec6
Merge pull request #2126 from tcjr/gjs-misc
mansona Aug 22, 2025
8866067
Merge remote-tracking branch 'origin/gjs' into gjs-in-depth
mansona Aug 29, 2025
e9f4ef2
apply review changes done live in Ember Learning Meeting
mansona Aug 29, 2025
8adf032
Merge pull request #2127 from tcjr/gjs-in-depth
mansona Aug 29, 2025
20db8af
Merge remote-tracking branch 'origin/master' into merge-master
mansona Aug 30, 2025
2a11756
Merge pull request #2141 from ember-learn/merge-master
mansona Aug 31, 2025
cf2d4be
Merge branch 'gjs' into gjs-routing
mansona Aug 31, 2025
f3575c8
update last references to hbs
mansona Sep 12, 2025
f220607
Merge pull request #2118 from ember-learn/gjs-routing
mansona Sep 12, 2025
404e81c
minor changes to runloop
mansona Sep 13, 2025
c275bbd
update anatomy-of-an-ember-app to gjs
mansona Sep 13, 2025
1a27b39
catch the last few references to Ember.run
mansona Sep 15, 2025
11c0041
fix lint
mansona Sep 15, 2025
eb48be6
Merge pull request #2147 from ember-learn/ember-app
mansona Sep 15, 2025
59163c7
Merge pull request #2146 from ember-learn/runloop
mansona Sep 15, 2025
d06abdd
updating testing-components to gjs
mansona Sep 15, 2025
d8ff613
update testing tools to gjs
mansona Sep 15, 2025
cc45c41
Merge pull request #2149 from ember-learn/testing-tools
mansona Sep 16, 2025
2d9b0b0
stop referring to QUnit.test
mansona Sep 16, 2025
5b0a0e5
update to not use this.set or assert.equal
mansona Sep 17, 2025
2597ecc
fix lint and tests
mansona Sep 17, 2025
7257532
Merge pull request #2148 from ember-learn/testing-components
mansona Sep 18, 2025
8f03818
Merge remote-tracking branch 'origin/master' into merge-master
mansona Sep 18, 2025
2baf046
Merge pull request #2150 from ember-learn/merge-master
mansona Sep 18, 2025
e401fba
Strict mode (#263)
ember-tomster Sep 9, 2025
09cad6b
Merge pull request #2151 from ember-learn/gjs-tutorial
mansona Sep 18, 2025
fa48015
Merge remote-tracking branch 'origin/master' into merge-master
mansona Sep 18, 2025
bc06c7c
Merge pull request #2153 from ember-learn/merge-master
mansona Sep 26, 2025
16565b5
show the gjs warning banner on 6.7.0
mansona Sep 27, 2025
e59d0f5
Merge pull request #2159 from ember-learn/show-banner
mansona Sep 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .local.dic
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@ websocket
working-with-html-css-and-javascript
yay
ZEIT
userQuestion
35 changes: 19 additions & 16 deletions guides/release/accessibility/page-template-considerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,32 @@ Consider this format:

Note that the unique page title is first. This is because it is the most important piece of information from a contextual perspective. Since a user with a screen reader can interrupt the screen reader as they wish, it introduces less fatigue when the unique page title is first, but provides the additional guidance if it is desired.

A simple way to add page titles is to use the `page-title` helper which comes from the [ember-page-title](https://github.com/ember-cli/ember-page-title) addon that is installed by default in new apps. We can use this helper to set the page title at any point in any template.
A simple way to add page titles is to use the `pageTitle` helper which comes from the [ember-page-title](https://github.com/ember-cli/ember-page-title) addon that is installed by default in new apps. We can use this helper to set the page title at any point in any template.

For example, if we have a “posts” route, we can set the page title for it like so:

```gjs {data-filename=app/routes/posts.gjs}
import { pageTitle } from 'ember-page-title';

```handlebars {data-filename=app/routes/posts.hbs}
{{page-title "Posts - Site Title"}}

{{outlet}}
<template>
{{pageTitle "Posts"}}
{{outlet}}
</template>
```

Extending the example, if we have a “post” route that lives within the “posts” route, we could set its page title like so:

```handlebars {data-filename=app/routes/posts/post.hbs}
{{page-title (concat @model.title " - Site Title")}}
```gjs {data-filename=app/routes/posts/post.gjs}
import { pageTitle } from 'ember-page-title';

<h1>{{@model.title}}</h1>
```
<template>
{{pageTitle @model.title}} {{! e.g., "My Title" }}

When your needs become more complex, the following addons facilitate page titles in a more dynamic and maintainable way.
<h1>{{@model.title}}</h1>
</template>
```

- [ember-cli-head](https://github.com/ronco/ember-cli-head)
- [ember-cli-document-title](https://github.com/kimroen/ember-cli-document-title)
Each call to the `{{pageTitle}}` helper will prepend the title string to the existing title all the way up to the root title in `application.gts`. So, if your application is titled "My App", then the full title for the above example would be "My Title | Posts | My App".

To evaluate more addons to add/manage content in the `<head>` of a page, view this category on [Ember Observer](https://emberobserver.com/categories/header-content).

Expand All @@ -48,14 +51,14 @@ You can test that page titles are generated correctly by asserting on the value
```javascript {data-filename=tests/acceptance/posts-test.js}
import { module, test } from 'qunit';
import { visit, currentURL } from '@ember/test-helpers';
import { setupApplicationTest } from 'my-app-name/tests/helpers';
import { setupApplicationTest } from 'my-app/tests/helpers';

module('Acceptance | posts', function(hooks) {
module('Acceptance | posts', function (hooks) {
setupApplicationTest(hooks);

test('visiting /posts', async function(assert) {
test('visiting /posts', async function (assert) {
await visit('/posts');
assert.equal(document.title, 'Posts - Site Title');
assert.equal(document.title, 'Posts | My App');
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't match the string used above on line 39. Should be My Title

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah looks like the previous code example did append @model.title " - Site Title"

});
});
```
Expand Down
Loading