mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Add trackBy to tags
This commit is contained in:
parent
a671d2f005
commit
81d06316ed
|
@ -1,5 +1,5 @@
|
|||
<div class="methods">
|
||||
<div class="tag" *ngFor="let tag of data.tags">
|
||||
<div class="tag" *ngFor="let tag of data.tags;trackBy:trackByTagName">
|
||||
<div class="tag-info" [attr.tag]="tag.name">
|
||||
<h1 class="sharable-header"> <a class="share-link" href="#tag/{{tag.name | encodeURIComponent}}"></a>{{tag.name}} </h1>
|
||||
<p *ngIf="tag.description" [innerHtml]="tag.description | marked"> </p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
import { Component, provide } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
import {
|
||||
inject,
|
||||
async,
|
||||
|
|
|
@ -46,4 +46,8 @@ export class MethodsList extends BaseComponent {
|
|||
trackByPointer(idx, el) {
|
||||
return el.pointer;
|
||||
}
|
||||
|
||||
trackByTagName(idx, el) {
|
||||
return el.name;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user