Skip to content

Nested fx-switch possible? #160

Answered by JoernT
pherk asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was a missing id on nested case. You find a completed running version in demo/switch-nested.html. Attaching the full code here also:

    <fx-fore>
        <fx-model>
            <fx-instance id="auth">
                <data>
                    <user>John</user>
                    <password></password>
                    <inprogress>false</inprogress>
                </data>
            </fx-instance>
            <fx-submission id="login"
                           method="urlencoded-post"
                           url="#echo"
                           ref="instance('auth')"
                           replace="none">
                <fx-setvalue ref="inprogress" event="sub…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JoernT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants