<table border="1" data-ng-controller="StageListController">
  <tbody data-ng-if="stages.length > 0">
    <tr>
      <th>&nbsp;</th>
      <th>#</th>
      <th>Référence</th>
      <th>Titre</th>
    </tr>
    <tr data-ng-repeat="s in stages" ng-include="'/Scripts/Ng client/Views/stageTemplate.html'"></tr>
    <!--<tr data-ng-repeat="s in stages">
      <td>
        <button data-ng-click="supprimer($index)">Supprimer</button>
        <button data-ng-click="editer($index)">Éditer</button>
      </td>
      <td> {{$index}} </td>
      <td> {{s.Ref}} </td>
      <td> {{s.Stage}}</td>
    </tr>-->

    <tr>
      <th colspan="4">{{ stages.length }} stage(s)</th>
    </tr>
  </tbody>
  <tr data-ng-if="stages.length === 0">
    <th>Aucun stage !</th>
  </tr>
</table>
