Skip to content

Commit

Permalink
All segments will be initialized with the same input expand param.
Browse files Browse the repository at this point in the history
  • Loading branch information
benkrig authored and hivivo committed Aug 18, 2018
1 parent 8270126 commit 1690f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx-json-viewer/ngx-json-viewer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span *ngIf="!segment.expanded || !isExpandable(segment)" class="segment-value">{{ segment.description }}</span>
</section>
<section *ngIf="segment.expanded && isExpandable(segment)" class="children">
<ngx-json-viewer [json]="segment.value"></ngx-json-viewer>
<ngx-json-viewer [json]="segment.value" [expanded]="expanded"></ngx-json-viewer>
</section>
</section>
</section>

0 comments on commit 1690f12

Please sign in to comment.