2015-10-21 17:24:04 +03:00
|
|
|
<div class="snippet">
|
2015-10-22 21:31:12 +03:00
|
|
|
<!-- in case sample is not available for some reason -->
|
2016-06-13 20:54:24 +03:00
|
|
|
<pre *ngIf="data.sample == undefined"> Sample unavailable </pre>
|
2016-07-17 18:07:51 +03:00
|
|
|
<div class="action-buttons">
|
|
|
|
<span> <a *ngIf="enableButtons" (click)="collapseAll()">Collapse all</a> </span>
|
|
|
|
<span> <a *ngIf="enableButtons" (click)="expandAll()">Expand all</a> </span>
|
|
|
|
<span copy-button [copyText]="data.sample | json" class="hint--top hint--inversed"> <a>Copy</a> </span>
|
|
|
|
</div>
|
2016-06-22 12:45:03 +03:00
|
|
|
<pre [innerHtml]="data.sample | jsonFormatter"></pre>
|
2015-10-21 17:24:04 +03:00
|
|
|
</div>
|