0๐
You can use EventBus implementation in Vue. You would emit an event from methods (or anywhere you want) in one component and you would register listeners during the lyfecycle hooks of other components.
0๐
$emit
events should not be camel case. Use kebab case instead.
try:
@click="$emit('set-movie', movieKey)
and then in carousel:
@set-movie="$emit('set-movie', movieKey)
and in parent
@set-movie="test"
- [Vuejs]-How to not get some data based on records in another table with laravel eloquent?
- [Vuejs]-Insert slot into a component instance
Source:stackexchange.com