I am using Angular 1.4.7 with typescript I have an autogenerated Client with Swagger in typescript to call a rest service like this:
module API.Client {
'use strict';
export class DefaultApi {
...
I am trying to use it by doing:
import TDRService = API.Client.DefaultApi;
export class ListaTrtController {
private tdrservice: TDRService;
/* @ngInject */
constructor(service: TDRService) {
this.tdrservice = service;
}
But I receive the error "Unknown provider: serviceProvider <- service <- ListaTrtController". How can I fix this problem?