Skip to content

Commit 95addb0

Browse files
author
kajan
committed
use set data in Vue component
1 parent 4c21673 commit 95addb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AspNetCoreVueMpa.Web/ClientApp/views/home/index/HelloWorld.vue

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<b-container class="test-global-css test-scoped-css">
44
Hello {{ name }} from Vue!
55
<img src="../../../assets/images/kajan.png">
6+
<pre class="text-white">
7+
{{ JSON.stringify(viewModel, null, 2) }}
8+
</pre>
69
</b-container>
710
</default-layout>
811
</template>
@@ -13,6 +16,7 @@ export default {
1316
data() {
1417
return {
1518
name: "world",
19+
viewModel: viewModel,
1620
}
1721
},
1822
}

0 commit comments

Comments
 (0)