I am wondering how I will use UI Router resolution using TypeScript.
.state("signin.notActivated", <ng.ui.IState> { controller: "SigninCtrl", controllerAs: "signin", url: "/notActivated", resolve: { inProgress: function() { return { formData : null } } } })
In my controller I entered my solution.
constructor(public $state : angular.ui.IState, private inProgress) { this.init(); } private init = () => { this.someData = this.inProgress.formData;
I get an unknown provider error because TypeScript is trying to register it as a service.

Can this be done?
source share