@precision-nutrition/ember-default-helper

v0.1.1
Returns the second argument if the first one is undefined.
ember-addon

{{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.

npm i @precision-nutrition/ember-default-helper

Metadata

  • MIT
  • 10.* || >= 12
  • Precision Nutrition Team
  • released 12/14/2021

Downloads