Element Text

Element contents can be bound using the mustaches syntax of double curly braces {{ }}

The data value to be bound must be seperated from the curly braces by a space.

Given then data:

let person = { 
    name: "Indigo Montana",
    quote: "You killed my father"

And the template

<div>
    Hello my name is {{ person.name }}. {{ person.quote }}.
</div>

The output would be

<div>
    Hello my name is Indigo Montana. You killed my father.
</div>

results matching ""

    No results matching ""