File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
- typings
2
+ typings
3
+ dist
Original file line number Diff line number Diff line change 1
1
# 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
3
3
4
4
This seed repo comes with all you need to start building a vuejs project using typescript.
5
5
Original file line number Diff line number Diff line change 34
34
"jquery" : " ^2.2.4" ,
35
35
"vue" : " ^1.0.26" ,
36
36
"vue-router" : " ^0.7.13" ,
37
- "vue-typescript" : " ^0.4.0 "
37
+ "vue-typescript" : " ^0.5.1 "
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ class Link {
16
16
} )
17
17
export class Navbar extends Vue {
18
18
19
- @Prop ( { default : true } )
20
- inverted :boolean ;
19
+ @Prop
20
+ inverted :boolean = true ; //default value
21
21
22
22
links :Link [ ] = [
23
23
new Link ( 'Home' , '/' ) ,
@@ -26,6 +26,6 @@ export class Navbar extends Vue {
26
26
27
27
@Watch ( '$route.path' )
28
28
pathChanged ( ) {
29
- console . log ( 'Changed current pathe to: ' + this . $route . path ) ;
29
+ console . log ( 'Changed current path to: ' + this . $route . path ) ;
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ var router = new VueRouter();
26
26
27
27
router . map ( {
28
28
'/' : {
29
- component : new HomeComponent ( ) //Components used by vue-router must be called with new
29
+ component : HomeComponent
30
30
} ,
31
31
'/about' : {
32
- component : new AboutComponent ( )
32
+ component : AboutComponent
33
33
}
34
34
} ) ;
35
35
Original file line number Diff line number Diff line change 2
2
"name" : " vue-typescript-seed" ,
3
3
"dependencies" : {},
4
4
"globalDependencies" : {
5
+ "jquery" : " registry:dt/jquery#1.10.0+20160704162008" ,
5
6
"node" : " registry:dt/node#6.0.0+20160709114037" ,
6
7
"vue" : " registry:dt/vue#1.0.21+20160423143248" ,
7
8
"vue-router" : " registry:dt/vue-router#0.7.10+20160316155526"
You can’t perform that action at this time.
0 commit comments