Skip to content

Commit 7969634

Browse files
committed
Updated to v0.5
1 parent 06fc9d1 commit 7969634

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
typings
2+
typings
3+
dist

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vue-typescript-seed
2-
A starter project for vue typescript using webpack and bootstrap
2+
A starter project for [vue-typescript](https://github.com/itsFrank/vue-typescript) using webpack and bootstrap
33

44
This seed repo comes with all you need to start building a vuejs project using typescript.
55

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"jquery": "^2.2.4",
3535
"vue": "^1.0.26",
3636
"vue-router": "^0.7.13",
37-
"vue-typescript": "^0.4.0"
37+
"vue-typescript": "^0.5.1"
3838
}
3939
}

src/components/navbar/navbar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Link {
1616
})
1717
export class Navbar extends Vue {
1818

19-
@Prop({default: true})
20-
inverted:boolean;
19+
@Prop
20+
inverted:boolean = true; //default value
2121

2222
links:Link[] = [
2323
new Link('Home', '/'),
@@ -26,6 +26,6 @@ export class Navbar extends Vue {
2626

2727
@Watch('$route.path')
2828
pathChanged(){
29-
console.log('Changed current pathe to: ' + this.$route.path);
29+
console.log('Changed current path to: ' + this.$route.path);
3030
}
3131
}

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ var router = new VueRouter();
2626

2727
router.map({
2828
'/' : {
29-
component: new HomeComponent() //Components used by vue-router must be called with new
29+
component: HomeComponent
3030
},
3131
'/about' : {
32-
component: new AboutComponent()
32+
component: AboutComponent
3333
}
3434
});
3535

typings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "vue-typescript-seed",
33
"dependencies": {},
44
"globalDependencies": {
5+
"jquery": "registry:dt/jquery#1.10.0+20160704162008",
56
"node": "registry:dt/node#6.0.0+20160709114037",
67
"vue": "registry:dt/vue#1.0.21+20160423143248",
78
"vue-router": "registry:dt/vue-router#0.7.10+20160316155526"

0 commit comments

Comments
 (0)