<small class="no-params" *ng-if="data.noParams"> No parameters </small>
<!-- General parameters -->
<table *ng-if="!data.noParams" class="inline">
  <thead>
    <tr>
      <th colspan="3"> Parameters </th>
    </tr>
    <tr>
      <th> Name </th>
      <th> Description </th>
      <th> Type </th>
    </tr>
  </thead>
  <tbody>
    <tr *ng-for="#param of data.params">
      <!--<div class="param">-->
        <td class="param-name">{{param.name}}</td>
        <td class="param-description">{{param.description}}</td>
        <td>
          <span class="type" [ng-class]="param.type">{{param.type}}</span>
        </td>
      <!--</div>-->
    </tr>
    <!-- in-body parameter -->
    <tr class="param body-param" *ng-if="data.bodyParam">
      <td class="param-name">{{data.bodyParam.name}}</td>
      <td>
        <schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
        </schema>
      </td>
      <td class="param-description">{{data.bodyParam.description}}</td>
    </tr>
  </tbody>
</table>

<table class="inline">
  <!-- No params -->
  <tr *ng-if="data.noParams">
    <td colspan="3">
      <small class="no-params" > No parameters </small>
    </td>
  </tr>

  <thead>
    <tr>
      <th colspan="3"> Parameters </th>
    </tr>
    <tr *ng-if="!data.noParams">
      <th> Name </th>
      <th> Description </th>
      <th> Type </th>
    </tr>
  </thead>
  <tbody>
    <!-- General parameters -->
    <tr *ng-for="#param of data.params">
      <!--<div class="param">-->
        <td class="param-name">{{param.name}}</td>
        <td class="param-description">{{param.description}}</td>
        <td>
          <span class="type" [ng-class]="param.type">{{param.type}}</span>
        </td>
      <!--</div>-->
    </tr>
    <!-- in-body parameter -->
    <tr class="param body-param" *ng-if="data.bodyParam">
      <td class="param-name">{{data.bodyParam.name}}</td>
      <td>
        <schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
        </schema>
      </td>
      <td class="param-description">{{data.bodyParam.description}}</td>
    </tr>
  </tbody>
</table>

Unify params table for no-params case
Unify params table for no-params case
