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

122
Views
AngularJS separate values depending on variable inside ng-repeat

I have 2 JSON that I merge inside an [{}], they both have a value that references from which JSON they came : 'gridCode' enter image description here

What I'm trying to achieve is having a visual separation in my view depending on the 'gridCode' like this : enter image description here, top should be it's own group and bottom is own but they still are in the same JSON

I've tried many approach such as using angular.filter groupBy method and filter pipe but without success, would appreciate a lot if someone could guide me :)

Here's what my repeater looks like :

<div class="flex-grid" style="margin-top: 1.5rem" ng-repeat="question in autoQuestions track by $index"
     data-keyboard="false"
     data-backdrop="static">
    <div class="row" style="align-items: center;">
        <div class="cell colspan6" style="text-align: end; padding-right: 10%">{{question.libelle}}</div>
        <label class="input-control checkbox cell colspan6">
            <input type="checkbox" ng-model="reponseQuestion[$index].answer"
                   ng-init="reponseQuestion[$index].answer=false" ng-click="enableBtn(question.code, $index)">
            <span class="check"></span>
        </label>
    </div>
</div>

a Sample of my JSON :

var autoQuestions = [{
 0 : { autocontroleGestionnaireReponse : null,
       libelle: test,
       gridCode: 123
       questionCode: 1478
      },
 1 : { autocontroleGestionnaireReponse : null,
       libelle: testTest,
       gridCode: 1234
       questionCode: 147896
      }
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!