Hey everyone just a structural question regarding services in Angular JS.
I have a module:
var mod = angular.module('myapp', []);
mod.config(function(){
// some various config stuff
});
I create three services, where some of them have an onto dependency and some have a one-to-one dependency.
mod.service('service1', ['service2', function(service2){
}]);
mod.service('service2', ['service1', function(service1){
}]);
mod.service('service3', ['service1, service2', function(service1, service2){
}]);
Since they are all being declared upon the initialization of the module myApp
then would this structure be allowed?