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.
angular.copy does not support circular reference #2618
Closed
Description
As titled and demonstrated here:
http://plnkr.co/edit/dRYPgyi9ITdaEFABJFBB?p=preview
JSON.stringify/angular.copy both fail on circular references, while other implementations of clone do not.
Also, is there some reason shallowCopy isn't exposed via publishExternalAPI like copy is?