What could be a potential issue if two services have a circular dependency on each other in Angular?

  • Compilation error
  • No issue, Angular handles it automatically
  • Reduced performance
  • Stack overflow error
If two services have a circular dependency on each other in Angular, it can lead to a stack overflow error as they keep calling each other recursively.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *