Using ng-repeat and ng-class on rows inside a table

后端 未结 3 1866
温柔的废话
温柔的废话 2020-12-08 18:01

I am using AngularJS and the effect I want to get would be something similar to what this would produce, assuming it would work (which it doesn\'t).

View

<         


        
3条回答
  •  我在风中等你
    2020-12-08 18:43

    This should actually work fine. Person should be available on the tr element as well as on its children since they share the same scope.

    This seems to work fine for me:

    {{ person.name }}

    http://jsfiddle.net/xEyJZ/

提交回复
热议问题