emberjs / emberjs/ember.js

Camelized Named arguments naming issue

Open
#17,377 11 comments 0 reactions 0 assignees View on GitHub
Has Reproduction
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

`<@ItemComponent />` renders "OK", `{{@ItemComponent}}` -> throw error `Assertion Failed: '@ItemComponent' is reserved.`
reproduction: [Ember Twiddle](https://ember-twiddle.com/b4f0d498611309dbcb26c9577b768f17?openFiles=templates.components.my-books.books-list.hbs%2C)

Refs: https://emberjs.github.io/rfcs/0276-named-args.html#reserved-names

It's really confusing if you missed this paragrath in RFC, should we update error message to point to RFC link or offer differen name? Instead of Assertion Failed: '@ItemComponent' is reserved. show something like this: Assertion Failed: '@ItemComponent' is reserved. RFC 276#reserved-names try change {componentName} attribute name from "ItemComponent" to "itemComponent".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.