I have two tables (.table1 and .table2) that sit side by side in separate DIVs on a page and regardless of content I want the second table rows to match the height of the first table rows so that they align perfectly. The first table is built using ng-repeat based on values from a database, so can height can vary - either way the equivalent row in the second table should always match.
I've been trying many different ideas, but was thinking that using a jQuery selector in the ng-style for table2 rows may work (see below) but it doesn't;
<tr ng-style="{'height': $('.table1 tr').eq('$index').height()+'px' }"></tr>
or
<tr ng-style="{'height': $('.table1 tr:nth-child($index).height()+'px' }"><tr>
obviously not working, but if I replace the jQuery selector with a specific value it styles the row as expected;
<tr ng-style="{'height': 50+'px'}></tr>
I'm not fussed about using jQuery, but am using it elsewhere so no issues with that, but basically I just want to align height of the rows in each table based on the row height of the first table (.table1). So the question is, how do I get the height value of a row in table1 and apply it as the height of the same row in table2 using angular?