Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I want to inject the angular ui bootstrap into an angular module using typescript.

Here is my code :

 /// <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 ]);

Im using libraries of DefinitelyTyped

share|improve this question
up vote 0 down vote accepted

The reference to the module is incorrect

Change

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

To

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

And just make sure you have a script tag reference to ui.bootstrap in you markup.

share|improve this answer
    
i have added nuget package of angular ui bootstrap DefinitelyTyped although the .ts is added but there is no .js file for that file. how to get the js file ? – Shan Khan Jul 3 '15 at 14:53
    
There should be a nuget package for the actual library if not you can get it from their github page directly and include that in your project. – Brocco Jul 3 '15 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.