Based on your last post (havent read all) I think you should look at
ng-class

which applies a class based on an equality check

<tr ng-class="{highlight: $index==0}">  - if you wanted to highlight the
first

<tr ng-class="{highlight: startName=='Starting Attributes'}">  - if you
wanted to highlight where a value is == something (messier)

<tr ng-class="{highlight: $index%2}">  - highlight every 2nd

although you could do these things with CSS too:  tr:firstChild { ... }
 (maybe)

using ng-class is a lot more explicit, which i think is better.



On Thu, Dec 19, 2013 at 8:54 AM, Brandon Casey <[email protected]> wrote:

> So I might have figured it out. I did the following:
>
>
>                 <tbody ng-repeat="(statName, item) in
> refStartingAttributes">
>                     <tr class="{{statName}}">
>
>
> Then I added a class to my CSS that deals with those. Soooo, for the
> statName value of "Starting Attributes" it would be class="Starting
> Attributes" which CSS sees as two classes. So I built a class in my CSS for
> Starting and the class sets the row's background to yellow.
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Tony Polinelli

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to