# j-ElementID

> This component fills the data-id attribute with the value read from the path.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: c71e940a7509ba88a97dc0f76cfa1d7bbcbd7839e88e7fad2014916ecc11b4c1
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

This component fills the `data-id` attribute with the value read from the path.

Use it with `<ui-component name="elementid">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
Check the <b>data-id</b> attribute via Web Developer tools.

<ui-component name="elementid" path="common.id"></ui-component>

<script>

	var common = { id: '123456' };

</script>
```
