Skip to content

Commit

Permalink
README: Clarify @glimmer/component situation
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 22, 2019
1 parent 1c9fdaa commit 9bb2e15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9bb2e15

Please sign in to comment.