/ember-unique-id-helper-polyfill

Polyfill for Ember.js unique-id helper

Primary LanguageJavaScriptMIT LicenseMIT

ember-unique-id-helper-polyfill

This addon provides a polyfill for unique-id helper as described in RFC 659.

Compatibility

  • Ember.js v3.24 or above
  • Ember CLI v3.24 or above
  • Node.js v12 or above

Installation

ember install ember-unique-id-helper-polyfill

Usage

Example:

{{#let (unique-id) as |emailId|}}
  <label for={{emailId}}>Email address</label>
  <input id={{emailId}} type="email" />
{{/let}}

{{#let (unique-id) as |passwordId|}}
  <label for={{passwordId}}>password</label>
  <input id={{passwordId}} type="password" />
{{/let}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.