Local
or Global
. Global
variables can be accessed or modified in any Page
or Component
of your application. Local
variables are bound to Pages
or Components
, so they can only be accessed and modified inside them.bestBand
, and give it the value Arctic Monkeys
. So if I utilize my variable anywhere in my code it would represent Arctic Monkeys
.The best band in the world is {{ bestBand }}
will be rendered as The best band in the world is Arctic Monkeys.
bestBand
example shows how to read a variable using Mustache notation but they can also be accessed using the Expression mode. Read more on how to use your variables at these sections.