On This Page
Expressions
Evaluating Expressions
Template expressions are evaluated against the template’s data context which includes the values and functions that are invokable for a template.
For an explanation of how a component’s data context is determined see component data context
Expressions are evaluated right to left with variables being read from the component’s data context
evaluates to
Evaluation Order
If an intermediary function is found it will pass the result through naively
evaluates to
Parenthesis
If parenthesis are used it will respect the evaluation order
evaluates to
Expression Locations
Attributes
If an attribute expression includes quotes it will output as a string regardless of the expression value.
For instance
will output as
Boolean Attribute
If an attribute expression omits quotes the entire attribute will be removed if the expression is falsey
If true
will output
and if false
will output