Home javascript vue.js keep-alive

vue.js keep-alive

Author

Date

Category

Help deal with Keep-Alive.

At the moment, all the routes are wrapped in Keep-Alive:

& lt; keep-alive & gt;
   & lt; Router-View & gt; & lt; / Router-View & GT;
& lt; / keep-alive & gt;

Made it intentionally to cache components when moving from one to another.

But among all these components, there is one for which such behavior is undesirable. Is it possible to somehow make an exception for it?


Answer 1, Authority 100%

Read the documentation, please https://ru.vuejs.org/v2 / API / # Keep-Alive

Each your component has a name. Write this name in Exclude .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions