Skip to main content

Text

{{ $.text$ }}

To create a text Node whose content is updated by a reactive value of type string, put this value in double curly brackets, {{}}.

It's converted to something similar to this:

toObservable($.text$)((value) => text.value = value);

Example​

<div>
Hello {{ single('world') }} !
</div>

Output:

<div>
Hello world !
</div>

Example file