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

157
Views
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 answers
Answer question

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 Report
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!