
Announcements
From a component I'm trying to set a global variable but it doesn't seem to get set. I'm using a simple Set(myvar, "myval"). Is there any special syntax to be used? Is setting a global variable from within a component even possible?
Variables within components exist only within the component instance.
If you need that value in your App, you will need the component to have an output property that provides the variable value.
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.