'use strict';

/**
 * @ngdoc function
 * @name hmdaPilotApp.controller:selectFile
 * @description
 * # Select File
 * Controller for selecting a HMDA file and Reporting Year for verification.
 */
module.exports = function ($scope, RuleEngine) {
    var fiscalYears = RuleEngine.getFiscalYears();

    // Populate the $scope
    $scope.reportingYears = fiscalYears;

    // Set default values for any form fields
    $scope.hmdaData = {
        year: fiscalYears[1],
        file: ''
    };

    // Process the form submission
    $scope.submit = function(hmdaData) {
        // Nothing to hook up to yet...
    };
};

'use strict';

/**
 * @ngdoc function
 * @name hmdaPilotApp.controller:selectFile
 * @description
 * # Select File
 * Controller for selecting a HMDA file and Reporting Year for verification.
 */
module.exports = function ($scope, RuleEngine) {
    var fiscalYears = RuleEngine.getFiscalYears();

    // Populate the $scope
    $scope.reportingYears = fiscalYears;

    // Set default values for any form fields
    $scope.hmdaData = {
        year: fiscalYears[1],
        file: ''
    };

    // Process the form submission
    $scope.submit = function(hmdaData) {
        console.log('HMDA Data: ', hmdaData);
        // Nothing to hook up to yet...
    };
};

Add a little console.log to use the hmdaData or else jshint complains about the param never being used
Add a little console.log to use the hmdaData or else jshint complains about the param never being used
