Hello,


After a successful login I'm trying to reroute the user to another 
component *with a value* but in my case it keeps going to the page not 
found component. my route isn't recognizing the value passed through the 
navigate so what am I doing wrong?



login.component.ts

This code does not work. unable to pass value with the 
route:this.*_router.navigate(['userDashboard/testvalue', testvalue])*;   

This code works:     this*._router.navigate([*'/userDashboard'*]); *//works


route.ts 

const userDashboardRouters: Routes = [
     { path: 'userDashboard', 
        children:[  
            { path: '', component: UserDashboardComponent },
            { path: ':testvalue', component: UserDashboardQueueListingComponent 
},
        ]
     }
]

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to