Skip to content

Commit 4e009d7

Browse files
author
Shaun Pelling
committed
added lesson 4 code
1 parent 049c0e6 commit 4e009d7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ new Vue({
22
el: '#vue-app',
33
data: {
44
name: 'Shaun',
5-
job: 'Ninja'
5+
job: 'Ninja',
6+
website: 'http://www.thenetninja.co.uk'
67
},
78
methods: {
89
greet: function(time){

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</head>
99
<body>
1010
<div id="vue-app">
11-
<h1>{{ greet('afternoon') }}</h1>
12-
<p>Name: {{ name}}</p>
13-
<p>Job: {{ job }}</p>
11+
<h1>Data Binding</h1>
12+
<a v-bind:href="website">The Net Ninja Website</a>
13+
<input type="text" v-bind:value="name" />
1414
</div>
1515
</body>
1616

0 commit comments

Comments
 (0)