make dynamically class name of html`s body tag #1725
Shaykhnazar
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Привет. У тебя есть доступ к пропсам Inertia не только в vue компонентах, но и blade) Я покажу тебе пример, как это использовал я, но в моем случае я использовал глобальные пропсы. Но для возвращаемых с обычным запросом все аналогично.
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel version: ^10.28
Vue.js version: ^3.2.36
HI there!
I want to make dynamically body tag's class name so that inside the component I need to set the class name of the body tag like:
Here
app.blade.php
root view file:app.js
file:App.vue
main layout component:Pages/Site/Home.vue
component for the home page of the website:Pages/Site/Catalog.vue
component for showing catalog items:package.json
:Or do you have any ideas on how to achieve this dynamic set the name of the body tag in the current version of inertia.js?
Beta Was this translation helpful? Give feedback.
All reactions