I have a routing problem in Angular 2. I am calling router.navigate from an action in datatable. It’s rare that sometimes when I press the button that calls this line, it works fine, and sometimes it doesn’t.
this.router.navigate(['edit', id], {relativeTo: this.activatedRoute});
Error displaying inspector element:
The requested path contains undefined segment at index 1
Im using Angular2, DataTables and Webpack
angular webpack navigation routing datatables
Matias graña
source share