Arshad Mehmood

Search the blog

    Today I Learned

    Pass data to routerLink

    angular2

    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