all files / js/department/ departmentForms.controller.js

40% Statements 2/5
100% Branches 0/0
0% Functions 0/3
40% Lines 2/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                                             
/*
 * +====================================================================+
 * |         Copyright (C) 2015 Rochester Institute of Technology,      |
 * |            103 Lomb Memorial Drive, Rochester, NY - 14623          |
 * |                        All Rights Reserved.                        |
 * +====================================================================+
 *   FILENAME
 *    departmentForms.controller.js
 *
 *   AUTHOR
 *    @author Khanh Ho (kchisd at rit.edu)
 *
 * =====================================================================
 */
 
angular.module('coopEval').controller('DepartmentFormsController', DepartmentFormsController);
 
function DepartmentFormsController($scope, $log, appService, formService) {
  formService.getDepartmentForms().then(function (response) {
    $scope.forms = response.data;
  }, function (response) {
    $log.warn("Error", response);
  });
}