I try to implement a provider with TypeScript that has dependencies to services. I think I have to inject those services into the get function, but how is this done in TypeScript?
In JavaScript it is implemented like this:
angular.module('HTML5Shell.Services')
.provider('service', [
'baseService',
function (baseService) {
return {
$get: ['$rootScope',
function ($rootScope) {
return {
method: function (param) {
return 'method called';
}
};
}]
};
}]);