如何将角度UI Bootstrap注入打字稿中的角度模块

如何将角度UI Bootstrap注入打字稿中的角度模块

问题描述:

我想使用打字稿将角度UI引导注入角度模块。如何将角度UI Bootstrap注入打字稿中的角度模块

这里是我的代码:

/// <reference path="../Scripts/typings/angularjs/angular.d.ts"/> 
/// <reference path="../scripts/typings/angular-ui-bootstrap/angular-ui-bootstrap.d.ts" /> 
angular.module("ReviewApp", ["ui.bootstrap" , angular.ui.bootstrap ]); 

进出口使用的DefinitelyTyped

库模块的引用不正确

变化

angular.module("ReviewApp", ["ui.bootstrap" , angular.ui.bootstrap ]); 

angular.module("ReviewApp", ["ui.bootstrap"]); 

只要确保在标记中有一个脚本标记引用了ui.bootstrap。

+0

我已经添加了nuget包的角度ui bootstrap DefinitelyTyped,尽管添加了.ts但没有该文件的.js文件。如何获得js文件? –

+0

如果不是你可以直接从他们的github页面获取它并将其包含在你的项目中,那么应该有一个nuget包用于实际库。 – Brocco