0

In the below code i want to add class to those row in which notes are more than 20.is there any way to add class according to my reqirement

<td> {{ participant.ParticipationRole }} </td>
                            <td> {{ participant.AvailableDate | date: "dd-MMM-yyyy" }} </td>
                            <td> {{ participant.Notes | limitTo: 20 }} {{participant.Notes.length < 20 ? '' : '...'}}</td>
1

1 Answer 1

1

Use ng-class :

<td ng-class="{ 'myClass': participant.Notes.length < 20 }"> Data </td>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.