Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
Angular.js: Input class not changing / pre-populating data as expected

I have the following structure: I have a list which is filled from JS (100% verified the the list is being filled and no data is missing).

In Angular's HTML, I go over the list with ng-repeat:

<div ng-repeat="attr in x.list track by $index">

Basically, the list is filled out of a JSON file containing FE elements data.

So, in each iteration of the Angular loop, I check what is the type of the element and have it as input.

One of the types is a textbox, and it should be pre-populated with data.

So if the type is a textbox, I fill it according to the following:

<input ng-if="attr.type=== 'textbox'"
                                    name= etc
                                    class=etc
                                    id=etc
                                    ng-minlength= etc
                                    ng-pattern= etc
                                    ng-maxlength= etc
                                    ng-model= etc
                                    value= etc
                                    ng-init= etc
                                    placeholder= etc
                                    mdn-input= etc
                                    ng-paste= etc
                                    ng-required= etc
                                    ng-disabled= etc

To explain it further, the loop fills all of the elements. For the user, there is a dropdown, and once he chooses anything, the Front End page loads the elements accordingly.

The issue is: When the page loads, the pre-populated data are loaded correctly. However when the user changes the option in Dropdown, the pre-populated data is sometimes NOT ALL loaded! So for example only 2 textboxes out of 4 is loaded.

Any ideas?

Thank you.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda