Are there any Typescript definitions for the AngularJS ui-router? -
I have been using type-scripts with UI-Router, have any kind of definitions been found for this? I definitely typed and could not see anything. Here I want to find an interface file for:
$ stateProvider
We are using dt for ui-router
:
update link, May 2011 < / P>
Raw version (copy / paste ready)
Upgrade notes:
When I updated the angular-ui-router.d.ts
to the latest (May 2015) version, I had to face some problems. In short, the solution
- Angular definition changes
- to:
InModule NG declared {
- :
declare the angle of the module << code>
- So updated
angular
- All related (existing)
d.ts
as well (angular-nmate.dt, Change all other(custom)
module announcements like
Module ng Announce XXX in
Declare module estimation. XXX {
With some of these steps ... everyone should work again (, Not working link)
Small code snippet form which is resource:
// angular js 1.1.5+ (ui.router module ) Definitions by Type: // Project: https://github.com/ angular- ui / ui-router // Definitions: Michael Silib & lt; Https: //github.com/michelsalib> // Definitions: https://github.com/borisyankov/DefinitelyTyped/// & lt; Reference path = "../ angularjs / angular.d.ts" /> Module ng.ui {interface iState {...
Usage examples
Module MyModule {export class MyStateConfig {constructor (Private $ State Provider: Ng .ui.istateProvider, private $ urlRouterProvider: ng.ui.IUrlRouterProvider ...) {this. $ StateProvider.state (...
Comments
Post a Comment