javascript - Not able to pass ng-repeat value into custom directive from table? -


i want pass ng-repeat value table directive, not working. in custom-elememt directive, want pass ng-repeat value it, not take ng-repeat value. if try same thin in div working, why not able pass ng-repeat value customer directive table.

not working

<tbody ng-repeat="entry in entries track $index">     <tr>        <td>  {{ entry.id }}></td>        <td>{{ entry.name }}</td>     </tr>     <products-table products="entry.products"></products-table> </tbody> 

working

<div ng-repeat="entry in entries">     <products-table products="entry.products"></products-table> </div> 

please find demo

http://plnkr.co/edit/dfmvhm6cozts1piglot3?p=preview

put directive within table cell.

<tbody ng-repeat="entry in entries track $index">     <tr>         <td>             <products-table products="entry.products"></products-table>         </td>     </tr> </tbody> 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -