RouteJs | JavaScript URL routing for ASP.NET MVC and WebForms | Model View Controller library
kandi X-RAY | RouteJs Summary
kandi X-RAY | RouteJs Summary
existing MVC routes, you do not need to use a different routing syntax or modify any of your existing routes at all.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RouteJs
RouteJs Key Features
RouteJs Examples and Code Snippets
Community Discussions
Trending Discussions on RouteJs
QUESTION
Good day to all!
I'm facing a big problem that I can't find an approach to.
In short - I would like to be able to generate multi-level routes of previously unknown length to create filters.
More details There is a website site.com
It has sections: site.com/news, site.com/articles and so on. For simplicity, I will denote them as site.com/section
Each section has categories: site.com/news/people, site.com/articles/how. For simplicity, I will denote them as site.com/section/category
The number of sections and categories can be more than one piece
When a user goes to a section, they see the entire list of posts in that section.
When the user goes to the category of the section, he sees only the news inside the category.
There are several such sections, so I set @nuxt/routejs to disable routing based on the pages directory. The route.js looks like this
...ANSWER
Answered 2021-Mar-23 at 11:54You can do this with the "one or more" or the "zero or more" matchers:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RouteJs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page