Replies: 2 comments 2 replies
-
hey this is how to use the middleware using npm // load the middleware
import 'pinecone-router-middleware-views'
// load pinecone router
import PineconeRouter from 'pinecone-router';
// then load alpine.js
import Alpine from 'alpinejs';
// add the router as a plugin
Alpine.plugin(PineconeRouter)
// start alpine
Alpine.start() For an example see this view: and this is where the plugin is imported: and here is a demo of it running: |
Beta Was this translation helpful? Give feedback.
-
I just checked and If you want to have scripts for specific views use to get params use Hope this helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi all ! i want to use middleware-views plugin but when i load the html file it doesn't "read" the Alpine code inside it ? how can i get this working ? i use registering from bundle option in Alpine docs: the docs
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions