使用angularjs2的时候,我们难免会用到第三方的js库,而和其他框架不一样的是,angular是通过
typings,类似于maven仓库一样,我的理解是这样,地址是:http://microsoft.github.io/TypeSearch/,在里面搜索你想要的js库资源,比如JQuery
在你使用的组件上加上类似于这段的代码:
///<reference path="../../../node_modules/@types/jquery/index.d.ts" />
如果找不到对应的d.ts文件,可以参考>http://blog.csdn.net/fay462298322/article/details/53307553将JS转成tsd文件