vue-page-transition | A lightweight Vue.js plugin for page / route transitions | Router library
kandi X-RAY | vue-page-transition Summary
kandi X-RAY | vue-page-transition Summary
A lightweight Vue.js plugin for page / route transitions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-page-transition
vue-page-transition Key Features
vue-page-transition Examples and Code Snippets
Community Discussions
Trending Discussions on vue-page-transition
QUESTION
I am building an e-commerce website using vue.js and an api as backend,
i have a root component called Main.vue
which had a navigation of router-link
and a body of router-view
.
in a route called Cart.vue
when a user updated quantity of some product i need Cart.vue
to $emit
an event
to the root component Main.vue
to trigger a function called getCartTotal()
hint Cart.vue
is not a child component
of Main.vue
Main.vue :
ANSWER
Answered 2020-Apr-04 at 21:42Vuex may be a bit more than you need here. You can just use the pub/sub
technique by creating a simple file that exports a new vue instance, you can then listen to events emitted on that Vue instance:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-page-transition
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page