<table ng-if="isAdmin" border="1" cellspacing="0" cellpadding="5"> <thead> <!-- .... --> </thead> <tbody> <tr ng-repeat="person in dynamicPeople track by person.id"> <!-- .... --> </tr> </tbody> </table> <!-- Add bottom-margin to the table so scroll-bars don't jump around visually. --> <div ng-if="( people.length != dynamicPeople.length )" ng-style="{ 'height': ( ( ( people.length - dynamicPeople.length ) * 48 ) + 'px' ) }"> </div>