emberjs / ember.js

Ember.js - A JavaScript framework for creating ambitious web applications
https://emberjs.com
MIT License
22.46k stars 4.21k forks source link

[Documentation] Glimmer component docs #19531

Closed chrisgame closed 3 years ago

chrisgame commented 3 years ago

📙 Describe the Issue

In the section on passing parameters to named blocks an example is shown as {{yield to="title" @person.name}} this gives an error. to="title" needs to be the last argument passed to yield.

🔬 Minimal Reproduction

Visit https://api.emberjs.com/ember/release/modules/@glimmer%2Fcomponent and scroll to the "Passing parameters to named blocks" section to see the examples

😕 Actual Behavior

The example is shown as {{yield to="title" @person.name}}

🤔 Expected Behavior

The example should be {{yield @person.name to="title"}}

âž• Additional Context

PR to fix here https://github.com/emberjs/ember.js/pull/19530

MelSumner commented 3 years ago

Closed with PR #19530