2024-01-23 20:21:13 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Create an app container element and setup the application using <i>createApp</i>.</p>
|
|
|
|
</DocSectionText>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
|
2024-01-23 20:21:13 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<body>
|
|
|
|
<script src="https://unpkg.com/vue@3/dist/vue.global.js"><\/script>
|
|
|
|
|
|
|
|
<div id="app">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const { createApp, ref } = Vue;
|
|
|
|
|
|
|
|
const app = createApp({
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
app.mount('#app');
|
|
|
|
<\/script>
|
|
|
|
</body>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|