guides-source icon indicating copy to clipboard operation
guides-source copied to clipboard

Show how to generate a unique ID to use with input labels

Open jenweber opened this issue 5 years ago • 3 comments
trafficstars

After https://github.com/ember-learn/guides-source/pull/1365 is merged, I think we should show how to use guidFor to generate the ID. There is a good example in the Ember Octane Cheatsheet https://ember-learn.github.io/ember-octane-vs-classic-cheat-sheet/

jenweber avatar Apr 08 '20 17:04 jenweber

https://github.com/emberjs/rfcs/issues/612 is related (and spit-balling solving this in a nice way).

rwjblue avatar Apr 08 '20 21:04 rwjblue

As an update, #1365 has been merged.

ijlee2 avatar Jul 08 '20 02:07 ijlee2

We can now use the built-in unique-id helper for this.

bertdeblock avatar Nov 23 '22 19:11 bertdeblock