Skip to content

Commit f0c711b

Browse files
author
Christopher Rogos
committed
update vue
1 parent b9495fd commit f0c711b

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

index.html

+11-10
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77

88
<body>
99
<div id="app">
10-
<my-component></my-component>
11-
</div>
12-
{% raw %}
10+
<hello name="mary" />
11+
</div>
1312
<script type="text/javascript">
14-
const app = {
15-
components: {
16-
'my-component': httpVueLoader('my-component.vue')
17-
}
18-
};
13+
const root = {};
1914

20-
Vue.createApp(app).mount("#app");
15+
const app = Vue.createApp(root);
16+
17+
app.component("hello", {
18+
props: ["name"],
19+
template: `<p>hello {{name}}</p>`
20+
});
21+
22+
app.mount("#app");
2123

2224
</script>
23-
{% endraw %}
2425
</body>
2526
</html>

0 commit comments

Comments
 (0)