我们将现有的angular1项目移动到angular2并想要替换现有的ui-select组件.
我用Google搜索,但找不到ui-selectangular2 的版本.
有没有人找到更好的选择?
我是TypeScript的新手.我想在我的应用程序中安装特定版本的角度定义文件.
使用TSDi可以使用以下命令
tsd install angular -v "1.4.0" -rso
Run Code Online (Sandbox Code Playgroud)
由于TSD不推荐使用,我已转而typings自动执行定义文件安装.
我的问题是,使用typings,我可以安装特定版本的角度定义文件吗?如果是,那么命令是typings什么?
更新:
我试过下面的命令,但它们没有用.
typings install angular@1.4.0
Run Code Online (Sandbox Code Playgroud)
和
typings install angular@1.4.0 --ambient
Run Code Online (Sandbox Code Playgroud)
错误消息如下所示:
$ typings install angular@1.4.0 --ambient
typings ERR! message Unable to find "angular" for "dt" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/dt/angular/versions/1.4.0/latest responded with 404, expected it to …Run Code Online (Sandbox Code Playgroud)