Skip to main content

bind-*

Evaluate a prop value without converting its JSON type.

Quick reference​

SyntaxBehavior
text="Hello"Literal string.
bind-text="data.message"Evaluated string.
bind-enabled="false"Evaluated boolean.
bind-value="42"Evaluated number.

Example​

<Text bind-text="data.message" />

Supply {"message":"Hello"} as the document’s data.

Rules and validation​

Literal template props are strings. Native literal props use their declared decoding rules. Bound values never gain string-to-number coercion. Supplying both literal and bound forms is an error. Missing keys yield null; dereferencing null fails. XML entities still apply inside expressions.

Display data · Expressions