[$injector:cdep] Circular dependency detected
The error [$injector:cdep] Circular dependency detected in AngularJS occurs when there is a circular dependency between the services, controllers, or other components that AngularJS injects into each other. In simpler….