angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Same Daynamic routes issue #436

Open hardy12994 opened 6 years ago

hardy12994 commented 6 years ago

I have set the same dynamic routes i.e :firstRoute and :secondRoute.

 [{
        path: ':one', component: ViewOneComponent
},{
        path: ':two', component: ViewTwoComponent
}]

these both are the child of one main (component) Route and i have set the values when they are fetch from back end API and set into these DYNAMIC paths ( main route children ) in Route Class.

Now what I am getting is the same component ( first name Component ) even on different child name of routes in main route .

what i want is they should go to different component.

I have set the value in routing class now they should refer to Different component. Not to the same component.