angular4 route issue by adding '/' character before path

前端 未结 1 757
既然无缘
既然无缘 2021-01-24 05:53

reason of using nested route for me is handling dynamically icon and back button for every page.i have abstract route because when i click to back button route params disappear

相关标签:
1条回答
  • 2021-01-24 06:18

    Have you tried removing the slashes in your Router link like so:

    [routerLink]=['Questionaire', item.questionnaireType, item.id, 'UpdateQuestionnaire']?

    There seems to be a problem with slashes in routerlink as described in this post

    I would post this as a comment, but since I don't have enough reputation I will post this as an answer, sorry about that.

    I hope this clears stuff up for you.

    Kind regards Chris

    0 讨论(0)
提交回复
热议问题