Skip to content

Commit 14c91b1

Browse files
authored
First Program in VueJs
First Program in VueJs
1 parent 4cabc17 commit 14c91b1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

app.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var myview = new Vue({
2+
el:"#our-app",
3+
data:{
4+
message:"This is our first code",
5+
fname:"Sanjay",
6+
channel:"Online web tutor"
7+
}
8+
});

first-code.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
<head>
3+
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
4+
</head>
5+
6+
<body>
7+
8+
<p id="our-app">
9+
Name : {{ fname }} and channel name is : {{ channel }}
10+
</p>
11+
12+
<script src="app.js"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)