In html, id="ember+number." What does that mean?

Visible in the inspector, many elements on the html of discourse pages have ids of the form “ember[somenumber]”, like id=“ember36”. Can I use these ids to learn anything about the discourse codebase?

For example, I’m often trying to figure out what component corresponds to a piece of code. Generally I use the ember inspector, which works decently. Do these ids give any information like that? (I don’t find them in the discourse github repo)

These are auto-generated by the framework at run-time. You cannot rely on the id values. Use explicit class names of your own in your code.

This is really an EmberJS question, not really Discourse specific. The EmberJS community is at https://discuss.emberjs.com/

9 Likes