mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-30 12:33:43 +03:00
11 lines
528 B
HTML
11 lines
528 B
HTML
<header *ngIf="data.schemaPointer || data.samples.length"> Request samples </header>
|
|
<schema-sample *ngIf="!data.samples.length" [pointer]="data.schemaPointer"> </schema-sample>
|
|
<tabs *ngIf="data.samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
|
|
<tab tabTitle="JSON">
|
|
<schema-sample [pointer]="data.schemaPointer"> </schema-sample>
|
|
</tab>
|
|
<tab *ngFor="let sample of data.samples" [tabTitle]="sample.lang">
|
|
<pre innerHtml="{{sample.source | prism:sample.lang}}"></pre>
|
|
</tab>
|
|
</tabs>
|