We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9495fd commit f0c711bCopy full SHA for f0c711b
index.html
@@ -7,19 +7,20 @@
7
8
<body>
9
<div id="app">
10
- <my-component></my-component>
11
- </div>
12
-{% raw %}
+ <hello name="mary" />
+ </div>
13
<script type="text/javascript">
14
- const app = {
15
- components: {
16
- 'my-component': httpVueLoader('my-component.vue')
17
- }
18
- };
+ const root = {};
19
20
- Vue.createApp(app).mount("#app");
+ const app = Vue.createApp(root);
+
+ app.component("hello", {
+ props: ["name"],
+ template: `<p>hello {{name}}</p>`
+ });
21
22
+ app.mount("#app");
23
24
</script>
-{% endraw %}
25
</body>
26
</html>
0 commit comments