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

198
Visualizações
Dynamically parsing arrays in HTML using ng-repeat

I am a newbie to AngularJS and HTML, sorry if these questions are very basic . I am trying to create a HTML table using ng-repeat by parsing an JS array. The sample data is given below

sample record:

data:{"acceptable":12,"run2":{"avg":0,"percent":0},"run1": {"avg":"9.337","percent":"10.401"},"trname":"ESSCreateIncident","target":8},

  1. Require to use ng-repeat to dynamically build an HTML Table like the one given below, in the same order. The below code which i tried is static and will not work if there additional parameters to it.

ng-repeat="row in data" {{row.trname}} {{row.target}} {{row.acceptable}} {{row.count}}

HTML table structure

There could be multiple runs like run3, run4 etc, which has multiple variables in it.
  1. Also i am pushing data into these arrays in different order, but i believe they are sorted alphabetically as shown above. i need them in the order which is given in the image or the the order they are pushed in.
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