Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

220
Visualizações
angular create tabs in tabs recursively

I am trying to create tabs in tabs view for a simple project. I have an object like this which is of a "tree" structure. object

I want to present this data as in the tabs mode like in the image shown below pic1

pic2

Object in JSON form https://pastebin.com/EzLUkvCR

How can I achieve these intervals/tabs view with given object?

I am using angular 13 and currently I am using angular template to create this view but can't get the right intervals.

I went further with the object https://pastebin.com/k39En9AF

angular template

<ng-template #quizInterval let-list>
  <div class="row my-1 mb-5 justify-content-center align-content-center align-items-center">
    <div *ngFor="let item of list" class="interval-col col"
         [class.active-interval]="item.active"
         (click)="onIntervalClick(item)">
      {{item.totalQuiz}}
<!--      Range: {{item?.range}} Idx {{item.index}}-->
    </div>
  </div>
  <ng-container *ngIf="list[getIndex(list)]?.child?.length > 0 && list[getIndex(list)]?.child[0]?.child">
    <ng-container *ngTemplateOutlet="quizInterval; context:{ $implicit: list[getIndex(list)]?.child }"></ng-container>
  </ng-container>
</ng-template>
<ng-container  *ngTemplateOutlet="quizInterval; context:{ $implicit: intervalsSizesList }"></ng-container>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda