Is teleported to body component, declared inside another component available after parent component unmount?

340 Views Asked by At

I have 2 components which are modal windows, where the second one is declared inside the first one template using a teleport like:

<!-- TheFirstComponent -->
<template>
  <Teleport to="body">
    <TheSecondComponent />
  </Teleport>
</template>

My question is: Will be TheSecondComponent available if TheFirstComponent is unmounted (modal window closed) due to teleport usage?

0

There are 0 best solutions below