Skip to content

Commit a7c04be

Browse files
author
Shaun Pelling
committed
lesson 18 code added
1 parent 9a9fc62 commit a7c04be

File tree

1 file changed

+13
-49
lines changed

1 file changed

+13
-49
lines changed

src/App.vue

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,24 @@
11
<template>
2-
<div id="app">
3-
<img src="./assets/logo.png">
4-
<h1></h1>
5-
<h2>Essential Links</h2>
6-
<ul>
7-
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
8-
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
9-
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
10-
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
11-
</ul>
12-
<h2>Ecosystem</h2>
13-
<ul>
14-
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
15-
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
16-
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
17-
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
18-
</ul>
19-
</div>
2+
<div>
3+
<h1>{{ title }}</h1>
4+
<p>{{ greeting() }}</p>
5+
</div>
206
</template>
217

228
<script>
239
export default {
24-
name: 'app',
25-
data () {
26-
return {
27-
msg: 'Welcome to Your Vue.js App'
10+
data () {
11+
return {
12+
title: 'Your first Vue file, wooo!'
13+
}
14+
},
15+
methods: {
16+
greeting: function(){
17+
return 'heeey cowboy'
18+
}
2819
}
29-
}
3020
}
3121
</script>
3222

3323
<style>
34-
#app {
35-
font-family: 'Avenir', Helvetica, Arial, sans-serif;
36-
-webkit-font-smoothing: antialiased;
37-
-moz-osx-font-smoothing: grayscale;
38-
text-align: center;
39-
color: #2c3e50;
40-
margin-top: 60px;
41-
}
42-
43-
h1, h2 {
44-
font-weight: normal;
45-
}
46-
47-
ul {
48-
list-style-type: none;
49-
padding: 0;
50-
}
51-
52-
li {
53-
display: inline-block;
54-
margin: 0 10px;
55-
}
56-
57-
a {
58-
color: #42b983;
59-
}
6024
</style>

0 commit comments

Comments
 (0)