How can I map parameterized route in homepage?
See original GitHub issueHello People,
Iām trying to create blog on this tool with vue, but I donāt know how to map /posts/:post
in homepage? my setup: WindiCSS, Markdown, Vue (without TS) and of course vite-plugin-ssr
. Is it possible to do this using tools I have?
If you donāt understand something, please write, then I will describe this.
Thank You
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
c# - How to map route with two parameters value where the ...
I am having trouble in route mapping. I have a ActionResult with two parameter where first parameter(category) is compulsory and second parameter(page no)Ā ......
Read more >The Complete Guide to URL parameters with React Router
1, React Router comes with a useParams Hook that returns an object with a mapping between the URL parameter and its value. import...
Read more >Parameterised Routes ā¢ Angular - codecraft.tv
With parameterised routes we can support variable paths in our routes. Angular also supports optional routes via passing in an object to the...
Read more >How to Use Route Parameters in Angular - Sam Julien
The first way is through the route snapshot. The route snapshot provides the initial value of the route parameter map (called the paramMap...
Read more >Full React Tutorial #25 - Route Parameters - YouTube
Key moments. View all Ā· Route Parameter Ā· Route Parameter Ā· Route Parameter Ā· Route Parameters Ā· Route Parameters Ā· Route Parameters Ā·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see.
So, you have a list of blog posts somewhere saved in a variable, letās say
myBlogPosts
.You add that variable to
contextProps.pageProps
:Then you pass
contextProps.pageProps
to your Vue root component as decribed in the docs.Then you generate the list of
<a>
links usingpageProps.myBlogPosts
and using Vueāsv-for
attribute:<li v-for="post in myBlogPosts">
.š
Iām closing this since itās not a bug nor feature request.
But feel free to keep me updated if you run into a major headache situation š.