datastar/site/static/md/examples/invalid_signals.md

442 B
Raw Blame History

Invalid Signals

Explanation

In the following example, $foo is not a valid signal, since only the leaf nodes in namespaced signals are actually signals. Open the console and youll see a link to a helpful error message.

<div data-signals="{foo: {bar: 1, baz: 2}, woof: 1}">
    <div data-text="$foo.woof"></div>
</div>