'use strict';
angular.module('liberValidApp')
- .controller('UsersCtrl', function ($scope, $http, Auth, User, Modal, socket) {
+ .controller('UsersCtrl', function ($scope, $http, Auth, User, Modal, Referential) {
$scope.getCurrentUser = Auth.getCurrentUser;
+ // Récupération des référentiels
+ $scope.referentials = Referential.query();
+
var listUsers = function () {
// Use the User $resource to fetch all users
$scope.users = User.query();