Comments (2)
I don't know anything about themeforst but are you loading the app.js in the root.blade.php? That files stays in browser and doesn't get reloaded on partial page loads. Also, your routes need to use the Splade middleware.
from laravel-splade.
I'm loading the theme.js file in resources/js/app.js file
import "../css/app.css";
import "@protonemedia/laravel-splade/dist/style.css";
import "./app.css";
import './themejs.js'
import VueApexCharts from 'vue-apexcharts' ;
import { createApp } from "vue/dist/vue.esm-bundler.js";
import { renderSpladeApp, SpladePlugin } from "@protonemedia/laravel-splade";
const el = document.getElementById("app");
createApp({
render: renderSpladeApp({ el })
})
.use(SpladePlugin, {
"max_keep_alive": 10,
"transform_anchors": false,
"progress_bar": true
})
.mount(el);
I'm using Splade middleware for all routes
Route::middleware(['splade'])->group(function () {
For Root file I have these codes
@spladeHead
@vite('resources/js/app.js')
</head>
<body class="font-sans antialiased">
@splade
</body>
is there any way to make it load with every action like vue js ?
from laravel-splade.
Related Issues (20)
- Unable to integrate Daisy UI into a new Laravel/Splade project - important HOT 3
- ProtoneMedia\Splade\Components\PersistentComponent::viewData(): Argument #2 ($slot) must be of type Illuminate\Support\HtmlString, Illuminate\View\ComponentSlot given HOT 6
- Error when input name starts with digit HOT 1
- x-splade-select in select filters in x-splade-table
- Defer component with infinite polling
- Missing og:description HOT 1
- Not Fetching default Select value from record on Edit HOT 1
- When will be laravel-Splade v2 released HOT 7
- Collapse sidebar function
- Date Range Filter Table Splade HOT 1
- Filepond multiple upload with Spatie media library keeps only the first file HOT 2
- Laravel Splade jquery code not work untill reload whole page HOT 4
- Dynamically added fields to a Splade form not being submitted
- Laravel support for presence channels
- PersistenLayout Not Working HOT 3
- Component Specific Javascript Dependencies HOT 3
- How to user ChartJS with Splade? HOT 1
- <x-splade-input> value tag will be ignored and is empty HOT 1
- X-Splade-Rehydrate loads the wrong part
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-splade.