Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!