@precision-nutrition/ember-default-helper

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

4.5 kB

Total Files

8

Last publish

Collaborators

  • dougestey
  • hasitha-pn
  • lauragonzalezz
  • trianglegrrl
  • pnfinance
  • pn-bot
  • jonhunt-pn
  • christophermilne
  • vpuzzella
  • ivanvotti
  • miguelverissimo
  • pn-ips