Vue.js best practice to remove component

Viewed 29183

My website overwrites a specific DOM instead of asking for a page load. Sometimes, inside the DOM there will be some Vue.js components (all are single page components), which will be overwritten. Most of them reside in an app created for the sole purpose of building the component.

Two questions:

  1. do I need to destroy those components? If YES: how?

  2. Is there any better solution to this approach?

2 Answers
Related