Skip to content

Commit

Permalink
Teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerga99 committed Aug 16, 2020
1 parent 8a2f7e2 commit 66047fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App.vue
@@ -1,6 +1,7 @@
<template>
<Header/>
<div class="container">
<div id="teleportContent"></div>
<router-view />
</div>
</template>
Expand Down
10 changes: 10 additions & 0 deletions src/ResourceApp.vue
Expand Up @@ -34,6 +34,9 @@
Delete
</button>
</h4>
<teleport to="#teleportContent">
<div class="teleport-body">I am Teleported!</div>
</teleport>
<resource-detail :resource="activeResource" />
</div>
</div>
Expand Down Expand Up @@ -75,3 +78,10 @@ export default {
}
}
</script>
<style>
.teleport-body {
padding: 20px;
background-color: #e6e6e6;
margin: 10px;
}
</style>

0 comments on commit 66047fa

Please sign in to comment.