Hi,
I have a few common functions/services/scope variables.
Here's an example:
controller1:
$scope.param1 = service1;
$scope.param2 = service2;
$scope.param3 = service3;
$scope.someParam = [];
controller2:
$scope.param1 = service1;
$scope.param2 = service2;
$scope.param3 = service3;
$scope.someParam = someService;
and so on for the rest of the controllers.
Now, the services might be dependent on the $scope value:
service1:
{var1: 'string',
var2: $scope.someParam}
I'm looking for a smart way to load them all from one place, and in
addition, to reduce the "inject" line for each controller (got tons of
services that I need to load...).
Is there a good way to do it? Would it be good to do it?
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.