Answer the question
In order to leave comments, you need to log in
How to change the parameter without re-rendering the component?
Good evening!
There is a route:
{ path: '/trading/:type?', name: i18n.t('menu_trading'), component: Trading, meta: { icon: 'desktop', hideFooter: true, props: true }},
/trading/real
and /trading/demo
$router.push
or <router-link>
, the component is recreated, that is, the create and destroy methods are called. :type?
without recreating the component? Answer the question
In order to leave comments, you need to log in
Try to wrap the keep-alive component and watch on $route.params
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question