Binds to the prime context data of this node.

Behaviors like With, Each, and Instance introduce a prime data context for their children. JavaScript and the Model tag do not introduce a prime data context.

Use data() when you wish to bind directly to the prime data context. This is for when your data contains a simple value rather than a data structure.

<JavaScript>
    exports.items = Observable(1,2,3)
</JavaScript>
<Each Items="{items}">
    <Text Value="{= data() }"/>
</Each>

Location

Namespace
Fuse.Reactive
Package
Fuse.Reactive.Bindings 1.11.2

Interface of DataFunction

Inherited from Expression

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces