Skip to content

Commit

Permalink
update vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Rogos committed Apr 5, 2022
1 parent b9495fd commit f0c711b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@

<body>
<div id="app">
<my-component></my-component>
</div>
{% raw %}
<hello name="mary" />
</div>
<script type="text/javascript">
const app = {
components: {
'my-component': httpVueLoader('my-component.vue')
}
};
const root = {};

Vue.createApp(app).mount("#app");
const app = Vue.createApp(root);

app.component("hello", {
props: ["name"],
template: `<p>hello {{name}}</p>`
});

app.mount("#app");

</script>
{% endraw %}
</body>
</html>

0 comments on commit f0c711b

Please sign in to comment.