Variables are passed through the unique URL of a flayyer as queryparams.
This is easy, just follow the correct queryparams standard of
? to start the queryparams and
& between consecutive variables.
Here is an example:
Inside the component it looks like this:
For arrays use this syntax:
?array=a&array=b. Example with an array variables named
For objects use this syntax:
?object[firstname]=a&object[lastname]=b. Example with an object variables named
Of course you can mix variables and arrays, but try to keep variables simple.
You can type the variables coming from the props. First install
Then on your templates: