Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Typo Error !!! #2055

Open
ItsPrabuSelvam opened this issue Sep 9, 2024 · 0 comments
Open

Simple Typo Error !!! #2055

ItsPrabuSelvam opened this issue Sep 9, 2024 · 0 comments

Comments

@ItsPrabuSelvam
Copy link

ItsPrabuSelvam commented Sep 9, 2024

site url : https://guides.emberjs.com/v3.14.0/components/

{{#each this.model as |post|}}
{{!-- either foo-component or bar-component --}}
{{#let (component this.componentName) as |Post|}}
<Post @post={{post}} />
{{/let}}
{{/each}}

{{#let (component this.componentName) as |Post|}} should be changed to {{#let (component post.componentName) as |Post|}}

Here the 'this' in the block refers to a controller, which leads to misunderstanding

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

No branches or pull requests

1 participant