I have an angular controller wrote in typescript and declared this way
angular.module('myApp').controller("gestioneProgetto",
["$scope", "PalmariService", "SoluzioniService", "ProgettoService", "WmsService", "BingService", "$modal", "SettoreService",
($scope, dispositivi, soluzioni, progetti, wms, bing, modal, settore)
=> new Palmare.Controllers.gestioneProgetto($scope, dispositivi, soluzioni, progetti, wms, bing, modal, settore)])
and is working fine. I want to change removing from here the di references, moving to
static $inject = ["$scope", "PalmariService", "SoluzioniService", "ProgettoService"
, "WmsService", "BingService", "$modal", "SettoreService"];
and changing to
angular.module('myApp').controller("gestioneProgetto", ($scope, dispositivi, soluzioni, progetti, wms, bing, modal, settore)
=> new Palmare.Controllers.gestioneProgetto($scope, dispositivi, soluzioni, progetti, wms, bing, modal, settore));
this approach worked fine with all the factoriesI changes, but trying with the first controller doing this I obtain the message
Error: [$injector:unpr] Unknown provider: dispositiviProvider <- dispositivi
Am I missing something?