Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Circular dependency if exception during resource init #4361

@cyrilchampier

Description

@cyrilchampier

class MyResource extends $resource("/test", { arg: throw "holy shit!" })

the first time the resource is needed, the exception is throw.
the second time "Error: [$injector:cdep] Circular dependency found: "

It seems that the resource is in cache as an empty object and is considered as INSTANTIATING:
(cache[serviceName] === INSTANTIATING) returns true

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions