Add an example on how to access controller in gjs/gts templates
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- html, javascript
- Domain
- documentation
Research direction
Start with the routing/controllers guide page linked in the issue and compare its current example with the provided valid GJS template. Update or replace the example to show controller access in GJS/GTS templates, then verify that the page renders correctly and the example is complete.
Written by the indexing model from the issue text.
Description
It would be helpful to have here an example here: https://guides.emberjs.com/v6.9.0/routing/controllers/
HEre is the current exmaple with gjs valid code, could be added to the page or replaced
<template>
<h1>{{@model.title}}</h1>
<h2>by {{@model.author}}</h2>
<div class='intro'>
{{@model.intro}}
</div>
<hr>
{{#if @controller.isExpanded}}
<button type="button" {{on "click" @controller.toggleBody}}>Hide Body</button>
<div class="body">
{{@model.body}}
</div>
{{else}}
<button type="button" {{on "click" @controller.toggleBody}}>Show Body</button>
{{/if}}
</template>
Thanks in advance
- Dominant language
- HTML
- Stars
- 161
- Forks
- 513
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ember-learn/guides-source
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ember-learn/guides-source#2090 · 3 comments · 1 reaction ·
-
ember-data
Difficulty 1/5 Under an hour Newbie friendliness 62/100
ember-learn/guides-source#1988 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ember-learn/guides-source#2230 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
ember-learn/guides-source#2228 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
ember-learn/guides-source#2226 ·
All issues in ember-learn/guides-source
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100