Passing multiple parameters in an Angular Route using RouteLink

added by DotNetKicks
7/17/2019 5:12:37 PM

1 Kicks, 135 Views

In Angular, let's say you have a route define like this. { path : 'user/:userId/building/:buildingid, component: UserScheduleDetailsComponent, pathMatch : 'full'} and you want to navigate the user to this component by using this route. I couldn't easily find a way to pass these parameters by using routelink.