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

Simplify and modernize README file #441

Merged
merged 8 commits into from
Nov 22, 2019
Prev Previous commit
README: Clarify @glimmer/component situation
Turbo87 committed Nov 22, 2019
commit 9bb2e15c41bcffb2399c93a8646d012c7876cbcb
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -81,6 +81,9 @@ Inside the `Spinner` component template the `data-test-spinner` attribute will
be applied to the element that has `...attributes` on it, or on the component
wrapper `div` element if you don't use `tagName = ''`.


### Usage with Curly Components

If you still use the old curly invocation syntax for components you can pass
`data-test-*` arguments to the components and they will automatically be bound
on the wrapper element too:
@@ -89,8 +92,8 @@ on the wrapper element too:
{{spinner color="blue" data-test-spinner=true}}
```

Please note that this only works for components based on `@ember/component`,
but not `@glimmer/component`.
Please note that the automatic argument binding only works for components based
on `@ember/component`, but not `@glimmer/component`.


### Usage in Ember addons