I have a real scenario in a real project where I need 2 services to access the properties and/or methods of each other. I\'m not an Angular expert so is it possible?
AngularJS does not allow injection of circular dependencies.
Miško Hevery, one of the authors of AngularJS, recommends finding the common elements:
+---------+ +---------+
| A |<-----| B |
| | | | +-+ |
| | | +->|C| |
| |------+---->| | |
| | | +-+ |
+---------+ +---------+
And extracting it to a third service:
+---------+
+---------+ | B |
| A |<-------------| |
| | | |
| | +---+ | |
| |--->| C |<----| |
| | +---+ +---------+
+---------+
For more information, see Circular Dependency in constructors and Dependency Injection by Miško Hevery.