You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is there a way to pass my configuration variables from PHP to JS?
For example: application logo, email, url, etc
Where should we store SPA configurations? (Like in .env files)
Thanks
Massimo
The text was updated successfully, but these errors were encountered:
Hey @impronta48, you can create a dedicated API endpoint which returns a list of configuration variables that you require. This can be called from a component(i.e. Sidebar.vue, Header.vue, etc.), which can be used by other components. You can also cache this API endpoint according to your needs, since changes in these values are not very often.
There might be better way than this but this is what I would suggest.
Hi,
is there a way to pass my configuration variables from PHP to JS?
For example: application logo, email, url, etc
Where should we store SPA configurations? (Like in .env files)
Thanks
Massimo
The text was updated successfully, but these errors were encountered: