File tree Expand file tree Collapse file tree 1 file changed +13
-49
lines changed Expand file tree Collapse file tree 1 file changed +13
-49
lines changed Original file line number Diff line number Diff line change 1
1
<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 >
20
6
</template >
21
7
22
8
<script >
23
9
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
+ }
28
19
}
29
- }
30
20
}
31
21
</script >
32
22
33
23
<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
- }
60
24
</style >
You can’t perform that action at this time.
0 commit comments