Skip to content

Commit fae6564

Browse files
committed
update to 0.12.8
1 parent 0f8a3a9 commit fae6564

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<body>
88
<div id="app">
99
<div class="nav">
10-
<a href="#a">Go to page A</a>
11-
<a href="#b">Go to page B</a>
10+
<a href="#page-a">Go to page A</a>
11+
<a href="#page-b">Go to page B</a>
1212
</div>
1313
<component is="{{view}}"></component>
1414
</div>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "1.0.0",
44
"description": "Vue project example using Webpack as the bundler.",
55
"main": "src/main.js",
6-
"dependencies": {
7-
"vue": "yyx990803/vue#dev"
8-
},
96
"devDependencies": {
107
"css-loader": "^0.12.1",
118
"html-loader": "^0.3.0",
@@ -31,5 +28,8 @@
3128
"bugs": {
3229
"url": "https://github.com/vuejs/vue-webpack-example/issues"
3330
},
34-
"homepage": "https://github.com/vuejs/vue-webpack-example"
31+
"homepage": "https://github.com/vuejs/vue-webpack-example",
32+
"dependencies": {
33+
"vue": "^0.12.8"
34+
}
3535
}

src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ var Vue = require('vue')
77
var app = new Vue({
88
el: '#app',
99
data: {
10-
view: 'a'
10+
view: 'page-a'
1111
},
1212
components: {
1313
// define the main pages as async components.
14-
a: function (resolve) {
14+
'page-a': function (resolve) {
1515
require(['./views/a'], resolve)
1616
},
17-
b: function (resolve) {
17+
'page-b': function (resolve) {
1818
require(['./views/b'], resolve)
1919
}
2020
}
@@ -29,7 +29,7 @@ var app = new Vue({
2929
*/
3030

3131
function route () {
32-
app.view = window.location.hash.slice(1) || 'a'
32+
app.view = window.location.hash.slice(1) || 'page-a'
3333
}
3434

3535
window.addEventListener('hashchange', route)

0 commit comments

Comments
 (0)