0👍
I had something similar task and what i did:
Make component-wrapper <MyToolBar />
and in it use:
<component :is='computedComponent'></component>
In this component u should just import yours toolbars.
If u use a vue-router, u can use hooks to listen page route.
Or u can use props.
well, i don’t know is it the right solution, but it worked in my case
- [Vuejs]-How to import bootstrap.bundle.min.js in vue project with webpack
- [Vuejs]-Set datetimepicker max/min values while loading
0👍
You could potentially make use of slots if there isn’t any major differences between the toolbars. Read more about them here. Hope this helps 🙂
- [Vuejs]-Trying to get property of non-object on laravel with axios
- [Vuejs]-Call component function from html view in Vue
Source:stackexchange.com