In the service, it works differently:
var teste = angular.module('userlog',['crypto']);
teste.service('seuService', ['userlogService','cryptoService', function (userlogService, cryptoService) {
//aqui o serviço
}]);
If you will not use it elsewhere, you can also do so only:
teste.service('seuService', function (userlogService, cryptoService) {
//aqui o serviço
});
If you intend to use multiple methods within the same service, I recommend that you use a factory instead of service:
var teste = angular.module('userlog',['crypto']);
teste.factory('seuService', function () {
function seuService() {
var userlogService = function(scope) {
//service 1
};
var cryptoService = function(scope) {
//service 2
};
}
return new seuService();
});
Using the controller would look something like this:
teste.controller('seuController',['seuService',function(seuService) {
seuService().userlogService($scope);
seuService().cryptoService($scope);
}]);