authService というサービスがあります。次のように Logincontroller から呼び出します。
angular.module('myApp').controller('LoginController',function($q, $scope, $location,$routeParams, $window, authService) {//some code here});
これはうまくいきます。
今、次のような regService という別のサービスがあります。
angular.module('myApp').factory('regService ', function ($window, $q, $rootScope) {//some code here});
LoginController で、 regService から関数を呼び出すにはどうすればよいですか?