github地址:传送门
Overview
there is a Todo sample on typescript offical website using Backbone.js.
Features:
- 
    
typescipt
 - 
    
vue.js
 - 
    
webpack
 - 
    
Use of external typings from DefinitelyTyped
 - 
    
Vscode
 
Running
> npm install -g typescript  
> npm install  
> npm link typescript  
> npm start记几个要点
- 一、typings
 
现在不推荐用tsd来安装定义文件,推荐使用typings,且从DefinityTyped下载 指令从1.0版本前的
typings install vue --ambient --save变成
typings install dt~vue --global --savedt~前缀表示从DefinityTyped下载文件
- 二、addTask
 
添加任务的时候,注意是调用的@keyup.enter="addTask()",如果用@keyup.enter="addTask"的话,里面的this指向了dom元素