You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(styleNamespace): now upgrading to using 'styleNamespace' for the namespace computed property. Will offically deprecate componentCssClassName in the future (#254)
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ To be able to use this for routes, you need to add a wrapping `div` around the o
103
103
104
104
After that it's quite easy: add a style file in your route directory alongside your `route.js` or `template.hbs` files.
105
105
106
-
An individual controller also has access to a `styleNamespace` property that is the namespace for a given route. This can be used for various use cases. (like enabling BEM style similar to how the `componentCssClassName` is used in a component)
106
+
An individual controller also has access to a `styleNamespace` property that is the namespace for a given route. This can be used for various use cases. (like enabling BEM style similar to how the `styleNamespace` is used in a component)
107
107
108
108
### Usage with classic (non pod) structure
109
109
@@ -184,18 +184,18 @@ postcss plugins in this way too.
184
184
185
185
### Getting the generated class name
186
186
187
-
You also have access to the generated class name to use in your templates. There is a computed property `componentCssClassName` This can be used to pass the class name to things like [`ember-wormhole`](https://github.com/yapplabs/ember-wormhole) or for use in BEM style classnames.
187
+
You also have access to the generated class name to use in your templates. There is a computed property `styleNamespace` This can be used to pass the class name to things like [`ember-wormhole`](https://github.com/yapplabs/ember-wormhole) or for use in BEM style classnames.
@@ -221,17 +221,19 @@ An example of BEM usage would be
221
221
}
222
222
```
223
223
224
+
*`componentCssClassName` will be officially deprecated, then removed in future versions. Will be migrating to the more appropriately named `styleNamespace`*
225
+
224
226
#### Using the generated class name in `classNameBindings`
225
227
226
-
You can build your own computed properties on top of `componentCssClassName`. One use case is using it to build a `classNameBinding`:
228
+
You can build your own computed properties on top of `styleNamespace`. One use case is using it to build a `classNameBinding`:
0 commit comments