Created ssr demo and moved csr to a sub-folder + rebuild

This commit is contained in:
euvl
2017-06-20 09:01:27 +01:00
parent b652b4342c
commit ff27ef2049
36 changed files with 7762 additions and 2 deletions

View 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>