Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Fix documentation - incorrect variable parameter #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rickmills
Copy link

Fixes the documentation, issue found in #1

Fixes the documentation, issue found in edalzell#1
@edalzell
Copy link
Owner

I appreciate this but I don't think this is right. to pass in a var you either need to do :value="the_var" or value="{the_var}".

What's your use case where this didn't work as it is written?

Updated the examples to show:

- How to set the custom var based on a scope value
- How to set a custom var based on a string value
@rickmills
Copy link
Author

Hi @edalzell,

You're right I've misunderstood the documentation issue here. I've updated the patch with two examples:

  • One to set the value based on the scope variable - this worked as expected already.
  • One to set the value based on a string - this wasn't documented

The issue both myself and the creator of #1 had was that we were trying to set the value as a string, not from an existing scoped variable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants