Skip to content

shortcut to assign instance as a global variable #292

@line-o

Description

@line-o

Instead of having to write below code to be able to reference the instance with id test as $test

<fx-model>
  <fx-instance id="test"><data>something</data></fx-instance>
  <fx-vars name="test" value="instance('test')"></fx-vars>
</fx-model>

I propose to add the as attribute to create that ... link(?)

<fx-model>
  <fx-instance id="test" as="test"><data>something</data></fx-instance>
</fx-model>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions