Questions tagged [nested-routes]

Nested routes allow to capture relationship in your routing.

http://guides.rubyonrails.org/routing.html#nested-resources

462 questions
1
vote
2 answers

How to add additional information when the url changes but not replacing the entire page in Next.js

I am new at Next.js and I need your help. I have a route called "workPage" which has other nav links and upon being clicked, I want to show users new information along with the content on "workPage", but I don't know how that can be achieved in…
Nyi Nyi Hmue Aung
  • 587
  • 1
  • 7
  • 19
1
vote
0 answers

Nested or child routing is not working angular

I have multiple modules in angular app, which I load lazily. Every module has its own routing. My top level routing const appRoutes: Routes = [ { path: "module1", loadChildren: "app/components/m1.module#MOduleOne" }, { …
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
1
vote
0 answers

Can very deeply nesting React routing be simplified by duplicating routes?

I'm using React router v4. I'm building a basic "profile" feature. The main structure is the following one : I got a profile list table ( /catalog-view/profils ) Inside this same page, the user can create a profile by clicking a button. So the user…
Morzanne
  • 21
  • 4
1
vote
1 answer

Nested routing in react

I'm trying to implement nested routing in my react app The routes in my root app.jsx file are defined like this. <>
1
vote
1 answer

Cannot code nested routes with react-router-dom 5.2.0?

I'm trying to access to sub components with nested routing in React using react-router-dom 5.2.0. Here you can find a CodeSandbox link of the project: https://codesandbox.io/s/nested-routes-8c7wq?file=/src/App.js First, let me show you the tree…
1
vote
0 answers

How to route to specific screen? How to Perform Nested route in custom_Navigator properly

I using custom Navigator package for routing. I have 4 screens say: ** ScreenA() ScreenB() ScreenC() ScreenD() ScreenA() contains nested routes. i.e if we route under ScreenA() it goes to some other screen which is child childOfScreenA() again i am…
Jay Parmar
  • 97
  • 2
  • 14
1
vote
0 answers

Building a route in mongoose/node for a nested mongo object

My first time on the platform. I am learning to code and one of the tasks I need to accomplish is to build a route utilizing Mongoose/MongoDB from a node/express server app so I may update the object data. I have had success in utilizing postman to…
1
vote
1 answer

Angular child route not updating when the subpath changes

Tinkering with my work-along from the Angular "Tour of Heroes" tutorial, I'm trying to see how child routes work. I have a HeroesComponent with an embedded . HeroesComponent, reached via '/heroes', displays a list of…
Green Grasso Holm
  • 468
  • 1
  • 4
  • 18
1
vote
0 answers

Vue JS Children Nested Routes Not Showing

I'm having a problem with Vue JS Nested Routes. Children component is not showing. Here's my code. Router { path: '/events', name: 'Events', components: { default: () => import('@/views/SideNavigation/Events/index.vue'), sidebar: ()…
carch
  • 217
  • 4
  • 18
1
vote
1 answer

react js router route to outside router in nested router

I have a problem with nested react-router-dom. I want to get out of inner router to outer router. I don't know how to explain it, so I bring a example…
JY N
  • 37
  • 6
1
vote
1 answer

how do i access route that create by app in reactjs

here I'm getting news by an api from server then create a route for that specific news item. when user click on one of news items the route will create and user will redirect to created route but there is a problem in navigating by go forward and…
1
vote
2 answers

how can i use history.push instead Link for nested routing in react

as you can see here i get some news from an api that is in another component named cts and then i want to render it and show the full content when the user click on one of them. just for testing i use SS component here. the problem is that i want…
1
vote
0 answers

why browser loads blank page in nested routing of react

as you can see i want to get news list by using another component and then show the full content of news item by clicking on each one. the first step (showing news list) runs truly but when i click on one of them i go to the specific route but it's…
1
vote
2 answers

how to do nested routes drf-extensions django using uuid instead of id

I have two Django models - I will change the name of my models here but the idea is the same. class Photo(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4) image = models.ImageField(upload_to='photos') created_at =…
Michael Torres
  • 512
  • 3
  • 21
1
vote
1 answer

Can't resolve all parameters for Component: (? ? ?)

I am getting this error when I add constructor( private fb: FormBuilder ) Uncaught Error: Can't resolve all parameters for RegisterComponent: (?). at syntaxError (compiler.js:2196) at CompileMetadataResolver._getDependenciesMetadata…
shrikant joshi
  • 494
  • 4
  • 12