Angular2 Routing. The requested path contains undefined segment at index 1

后端 未结 2 1683
日久生厌
日久生厌 2021-02-11 18:12

I have a issue with routing in Angular 2. I call router.navigate from an action into a datatable. The rare is that sometimes when i click the button that calls this line its wor

2条回答
  •  盖世英雄少女心
    2021-02-11 18:19

    Probably your id that pass into in navigate is undefined or null.console your id and fix and then pass into in navigate .i had same issue and fixed it.

提交回复
热议问题