In my angular 4 application I have a page with a table and every row has 3 icon ( duplicate, edit, delete). when I click on the edit icon the application route to detail page for edit this particular object, whit this path:
path: 'object/:code',
loadChildren: '....
When I click on the duplicate icon I want to route to the same page like edit but I need to pass another information because I need to tell to the detail page that I am in duplicate mode So what is the best practice and how can I catch it after in the detail page