LinusBorg / vue-simple-portal

A simpler Portal implementation focussed on moving slot content to the end of the body element
Other
223 stars 28 forks source link

How can I make re-trigger DIV id selector with vue component (Questions) #88

Open MgHtinLynn opened 1 year ago

MgHtinLynn commented 1 year ago

I'm trying to do Vue Component re-rendering after the API UI is Updated.

Firstly, rendering Vue and Portal is correctly working.

However after the API was updated, we replaced the raw HTML from API to target DIV. Then the linked portal is removed from DIV. Because inside the div, there was also the portal binds selector with Vue Component.

I would like to re-link with target DIV and vue component after replacing RAW HTML with DIV (like Livewire).

May I know do you have any suggestions or ideas about it?

Thank you

Vue - 2.6.11 Vue-simple-portal - 0.1.5