The table's content is loaded by ajax and I want to show loading content like this. How can I turn these two ng-show into directive
<table>
<tr>
<th>aaa</th>
<th>bbb</th>
<th>ccc</th>
</tr>
<tr ng-show="isLoading">Loading...</tr>
<tr ng-show="!isLoading" ng-repeat="log in logs">
<td>{{log.aaa}}</td>
<td>{{log.bbb}}</td>
<td>{{log.ccc}}</td>
</tr>
</table>
<table>is very limited on allowed types of child elements so you can't use a custom tag as a child of<table><table><tr>...</tr><tr loading ng-repeat="xxx"></tr></table>ng-show's into directive. Would likely help for you to read How to Ask. being as detailed and specific as possible avoids confusion and guessing on our part. Asking a good question does take a bit of effort but will also get much quicker response