Skip to content

Commit 69dbb3e

Browse files
hootlexLinusBorg
authored andcommitted
Rename Hello component to HelloWorld (#944)
Self-closing components
1 parent e9ed4c5 commit 69dbb3e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

template/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
<div id="app">
33
<img src="./assets/logo.png">
44
{{#router}}
5-
<router-view></router-view>
5+
<router-view/>
66
{{else}}
7-
<hello></hello>
7+
<hello-world/>
88
{{/router}}
99
</div>
1010
</template>
1111

1212
<script>
1313
{{#unless router}}
14-
import Hello from './components/Hello'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
14+
import HelloWorld from './components/HelloWorld'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
1515
1616
{{/unless}}
1717
export default {
1818
name: 'app'{{#router}}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}{{else}},
1919
components: {
20-
Hello{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
20+
HelloWorld{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
2121
}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}{{/router}}
2222
}{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
2323
</script>

template/src/components/Hello.vue renamed to template/src/components/HelloWorld.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<script>
2424
export default {
25-
name: 'hello',
25+
name: 'HelloWorld',
2626
data{{#unless_eq lintConfig "airbnb"}} {{/unless_eq}}() {
2727
return {
2828
msg: 'Welcome to Your Vue.js App'{{#if_eq lintConfig "airbnb"}},{{/if_eq}}

template/src/router/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vue from 'vue'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
22
import Router from 'vue-router'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
3-
import Hello from '@/components/Hello'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
3+
import HelloWorld from '@/components/HelloWorld'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
44

55
Vue.use(Router){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
66

@@ -9,7 +9,7 @@ export default new Router({
99
{
1010
path: '/',
1111
name: 'Hello',
12-
component: Hello{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
12+
component: HelloWorld{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
1313
}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
1414
]{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
1515
}){{#if_eq lintConfig "airbnb"}};{{/if_eq}}

0 commit comments

Comments
 (0)