data binding
Filling a UI element with values from your data, such as putting each user's name into a copy of a list-item template.
In more detail
In plain DOM code you bind data by setting textContent or attributes on cloned template nodes. Frameworks automate the same idea and keep the UI updated when data changes.
Related terms
- template element — An HTML element whose contents are parsed but not rendered or run, kept as a reusable blueprint that scripts copy into the page.
- textContent — The DOM property that reads or replaces all the text inside a node, treating anything you assign as plain text rather than markup.
Taught in
- DOM Manipulation: DocumentFragment And HTML Templates — Frontend Architecture & Web Platform