2016-01-31 20:37:51 +03:00
|
|
|
<header *ngIf="data.bodySchemaPtr || data.samples.length"> Request samples </header>
|
|
|
|
<schema-sample *ngIf="!data.samples.length" [pointer]="data.bodySchemaPtr"> </schema-sample>
|
2016-02-03 17:47:20 +03:00
|
|
|
<tabs *ngIf="data.samples.length" (change)=changeLangNotify($event)>
|
2016-02-01 15:54:58 +03:00
|
|
|
<tab tabTitle="JSON">
|
2016-01-31 20:37:51 +03:00
|
|
|
<schema-sample [pointer]="data.bodySchemaPtr"> </schema-sample>
|
|
|
|
</tab>
|
|
|
|
<tab *ngFor="#sample of data.samples" [tabTitle]="sample.lang">
|
|
|
|
<pre innerHtml="{{sample.source | prism:sample.lang}}"></pre>
|
|
|
|
</tab>
|
|
|
|
</tabs>
|