key:raw
One-way bind a string value to the ViewModel or element.
childProp:raw="value"
Sets the string value "value" to childProp in viewModel.
<my-component someProp:raw="35"/>
Parameters
- childProp
{String}:The name of the property to set in the component’s viewmodel.
- value
{Literal Expression}:A string literal from which
childPropwill be set.
Use
childProp:raw="value" is used to set a value on a child ViewModel to a string value. Use this to avoid having to wrap raw values in quotes.
The two uses below are equivalent:
<player-scores scores:from="'37'"/>
<player-scores scores:raw="37"/>