An Ember modifier to attach a dynamic attribute to an element.
npm install ember-build-attr-modifierember-build-attr-modifier
==============================================================================
An Ember modifier to attach a dynamic attribute to an element.
Compatibility
------------------------------------------------------------------------------
* Ember.js v3.24 or above
* Ember CLI v3.24 or above
* Node.js v12 or above
Installation
------------------------------------------------------------------------------
```
ember install ember-build-attr-modifier
Usage
------------------------------------------------------------------------------
By default, attributes built with the modifier are prefixed with data- as designed by HTML5 standards. If we wanted a very simple atttribute that used an argument (btnName which we'll set to be confirm) as part of the name, we could just list out our strings/arguments:
`hbs`
{{!-- app/components/foo-component.hbs --}}
This would create a DOM element:
`html`
All positional arguments are automatically concatenated. You can also pass in the value for the attribute:
`hbs`
{{!-- app/components/foo-component.hbs --}}
This would give you the expected:
`html`
In the event that you want to create a _non-data_ attribute, you can do:
`hbs`
{{!-- app/components/foo-component.hbs --}}
This will generate:
`html``
Contributing
------------------------------------------------------------------------------
See the Contributing guide for details.
License
------------------------------------------------------------------------------
This project is licensed under the MIT License.