I am using this code
You can use HTML hidden attribute to achieve same thing
0" mat-footer-row *matFooterRowDef="['noRecord']" >