{{class-names}}
helper
Provides a cleaner way for conditionally joining class names in templates.
Before:
After:
Or with {{cn}}
alias in a single line:
Installation
ember install ember-class-names-helper
The helper relies on a tiny and well-tested library classnames.
Usage
Or with {{cn}}
alias:
Compatibility
- Ember.js v3.20 or above
- Ember CLI v3.20 or above
- Node.js v12 or above
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.