My routes in Vue router:
{ path: 'articles/create', component: () => import('Detail.vue') },
{ path: 'articles/:id/edit', component: () => import('Detail.vue') },
As you can see, I render the same Vue component Detail.vue
on both routes.
How do I "force" Vue to destroy & re-create the Detail.vue
component when the URL changes from for example /articles/5/edit
to /articles/create
?