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

159
Vistas
Conditional call of class from <td> tag
<td class="text-center">

Is there a way to call a class in the above <td> tag based on a condition (Boolean value check)? I want to add "pointer" to the class call if the condition is true and leave it as "text-center" if it is false... like below:

if condition is met:

<td class="pointer text-center">

if condition is not met:

<td class="text-center">
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

What you want is ng-class

The following example uses a $scope variable conditionIsMet

<td ng-class="{'pointer': conditionIsMet}" class="text-center">
about 4 years ago · Juan Pablo Isaza Denunciar
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