Documentation Index
Fetch the complete documentation index at: https://mintlify.com/trailheadapps/lwc-recipes/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thehello component demonstrates the most basic form of data binding in Lightning Web Components. It shows how to bind an HTML element to a component property using curly brace syntax {propertyName}.
What It Does
This component displays a simple greeting message by binding thegreeting property to the template. The property value “World” is rendered inside the template, demonstrating one-way data binding from JavaScript to HTML.
Component Code
Key Concepts
- Property Declaration: The
greetingproperty is declared as a class field with a default value - Data Binding: Curly braces
{}are used to bind the property value to the template - One-Way Binding: Data flows from the JavaScript class to the HTML template
