mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Created ssr demo and moved csr to a sub-folder + rebuild
This commit is contained in:
19
demo/server_side_rendering/pages/index.vue
Normal file
19
demo/server_side_rendering/pages/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div>
|
||||
<modal name="foo">bar</modal>
|
||||
<button @click="$modal.show('foo')">
|
||||
Open modal
|
||||
</button>
|
||||
<p>Hi from {{ name }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
asyncData ({ req }) {
|
||||
return {
|
||||
name: req ? 'server' : 'client'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user