ngx-json-viewer
ngx-json-viewer copied to clipboard
Fix big objects not expandable & expanded state reset when not needed
This fix introduce a Set that is used to store children's expanded state. If the json
property is changed with an object containing the same keys, the children's expanded state is preserved.
Angular was updated to >=8.0.0
.
Tell me if you need anything to merge this PR & publish the package. For info, it works well with quite heavy objects in my project.
For people passing by, you can install my build using the following command:
npm install git+https://github.com/GerkinDev/ngx-json-viewer.git#release
:beers: Cheers !
How does this work with duplicate keys?
There's one set per object/array, so it can't have any duplicate keys.
Could you please merge this pull request? :smiley: @hivivo
Hi, this repo looks dead, what do u think about open a new fork like ngx-json-viewer2 (if I'm not wrong the MIT licence allow it) and merge those PRs on that repo?