Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$$hashKey attribute is added to the last children #59

Closed
hannabasha opened this issue Aug 10, 2017 · 0 comments
Closed

$$hashKey attribute is added to the last children #59

hannabasha opened this issue Aug 10, 2017 · 0 comments

Comments

@hannabasha
Copy link

hannabasha commented Aug 10, 2017

First of all, really nice work!!!

I am working on having a toggle between the code view and the tree view of a JSON object. So when the user clicks to view the tree mode I show the JSON using the package and when the user clicks to view the code mode again I hide the tree view but I notice that the object has an attribute added to the children which is

$$hashKey:"object:695". the number changes depending on the child.

The following is the normal JSON I have

{ "second": "good night", "third": [ 1, "two", 3, { "child": true }, { "parent": true } ], "first": "bye" }

and when I show the tree mode and go back to the code mode I get the following object
{ "second": "good night", "third": [ 1, "two", 3, { $$hashKey:"object:695", "child": true }, { $$hashKey:"object:696", "parent": true } ], "first": "bye" }

Environment

Angular 1.5.5

@hannabasha hannabasha changed the title $$hashKey attribute is added to the last child $$hashKey attribute is added to the last childern Aug 10, 2017
@hannabasha hannabasha changed the title $$hashKey attribute is added to the last childern $$hashKey attribute is added to the last children Aug 10, 2017
Datrio added a commit to Datrio/angular-json-tree that referenced this issue Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant