JavaScript.Dependencies Property
A list of named expressions that will be evaluated and injected as variables into the script.
This property allows injecting dependencies defined as UX expressions into the script using the dep:
XML namespace.
Example:
<JavaScript>
exports.foo = 123
</JavaScript>
<JavaScript dep:foo="{foo}">
foo // this is now 123
</JavaScript>
A script is not executed until all of its dependencies are available. If any of the dependencies change, the script is re-executed.
This has multiple use-cases:
- Accessing data from data context
dep:foo="{foo}"
- Accessing properties synchronously
dep:SomeProp="{Property SomeProp}"
Location
- Namespace
- Fuse.Reactive
- Package
- Fuse.Scripting.JavaScript 2.9.1