1

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

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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 ?
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.