How to load again(reload) component in VueJs or destroy it and load again?
ali-hallaji opened this issue · 3 comments
I have some issues with Aplayer and I create a post on Stackoverflow for it.
Please help me. the link is here
I have some issues with Aplayer and I create a post on Stackoverflow for it.
Please help me. the link is here
You can set a key
prop on the component you want to re-create, and change its value to trigger the re-create.
Just FYI, this underlying mechanism is also how the key
prop in lists works for caching components.
@SevenOutman Thank you so much for your plugin. But there are somethings is missing.
I need to access my info's current music from Vue. For this approach, I forced to define refs
then take it info from its and It's not reliable sometimes it plays music from the previous playlist when changing the list. But I think you know a better way. Also, I need to run triggers when the events happened.
I think there is a bug due to the component's computed property musicList being cached.