fix: broken code samples tabs in IE

This commit is contained in:
Roman Hotsiy 2017-02-27 16:06:05 +02:00
parent c5b6ac47ac
commit c1dbb81aac
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
<header *ngIf="schemaPointer || samples.length"> Request samples </header>
<schema-sample *ngIf="schemaPointer && !samples.length" [skipReadOnly]="true" [pointer]="schemaPointer"> </schema-sample>
<tabs *ngIf="samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
<tab *ngIf="schemaPointer" tabTitle="JSON">
<tab *ngIf="schemaPointer" [tabTitle]="'JSON' | safe">
<schema-sample [pointer]="schemaPointer" [skipReadOnly]="true"> </schema-sample>
</tab>
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang">
<tab *ngFor="let sample of samples" [tabTitle]="sample.lang | safe">
<div class="code-sample">
<div class="action-buttons">
<span copy-button [copyText]="sample.source" class="hint--top-left hint--inversed"><a>Copy</a></span>

View File

@ -1,5 +1,5 @@
<ul>
<li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"
class="tab-{{tab.tabStatus}}" [innerHTML]="tab.tabTitle"></li>
class="tab-{{tab.tabStatus}}" [innerHtml]="tab.tabTitle"></li>
</ul>
<ng-content></ng-content>