Arshad Mehmood

Search the blog

    Pass data to routerLink

    angular21 min read

    If you want to pass data to a url using a property like so: /user/:id/details, then:

    [routerLink]="['user', user.id, 'details']"

    Solution found here: How to pass a parameter to routerLink that is somewhere inside the URL