@precision-nutrition/ember-default-helper
v0.1.1
Published
Returns the second argument if the first one is undefined.
Downloads
25
Maintainers
Keywords
Readme
{{default}} helper
Returns the second argument if the first one is undefined
.
Installation
ember install @precision-nutrition/ember-default-helper
Usage
<div class="PnMenu" ...attributes>
{{yield
(component
"pn-menu/item"
truncate=(default @truncate true)
onClick=(default @onItemClick (noop))
)
}}
</div>
Compatibility
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.