/// <reference path="~/Scripts/angular.js" />
(function (app) {
  var StageListController = function ($scope, stages) {
    StageListController.$inject = ["$scope", "stages"];
    $scope.stages = stages;
    $scope.supprimer = function (index) {
      $scope.stages.splice(index, 1);
    };
    $scope.editer = function (index) {
      window.location.href = "#details/" + index;
    };
  };
  app.controller("StageListController", StageListController);
}(angular.module("stageModule")));
