{"size": 1427, "ext": "js", "max_stars_repo_path": "component/wizard-steps/wizard-steps.directive.js", "max_stars_repo_name": "hermeslm/ods-lib", "max_stars_repo_stars_event_min_datetime": "2018-07-03T15:39:19.000Z", "max_stars_repo_stars_event_max_datetime": "2018-11-27T04:50:31.000Z", "max_issues_repo_path": "component/wizard-steps/wizard-steps.directive.js", "max_issues_repo_name": "hermeslm/ods-lib", "max_issues_repo_issues_event_min_datetime": "2021-03-24T19:55:52.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T12:25:24.000Z", "max_forks_repo_path": "component/wizard-steps/wizard-steps.directive.js", "max_forks_repo_name": "hermeslm/ods-lib", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 18.2948717949, "max_line_length": 124, "alphanum_fraction": 0.4604064471}
'use strict';

angular
    .module('ods-lib')
    .directive('wizardSteps', wizardSteps);

wizardSteps.$inject = [];

/**
 *  steps = [
 *    {
 *        name: 'DRAFT',
 *        label: 'Draft',
 *        status: 'active',
 *        callback: function (elem) {
 *            // Prompt for status change
 *        }
 *    },
 *    {
 *        name: 'READY',
 *        label: 'Ready',
 *        status: '',
 *        callback: function (elem) {
 *            // Prompt for status change
 *        }
 *    },
 *    {
 *        name: 'JOINED',
 *        label: 'Joined',
 *        status: '',
 *        callback: function (elem) {
 *            // Prompt for status change
 *        }
 *    },
 *    {
 *        name: 'DISCHARGED',
 *        label: 'Discharged',
 *        status: '',
 *        callback: function (elem) {
 *            // Prompt for status change
 *        }
 *    }];
 *
 *
 *
 * @returns {{restrict: string, templateUrl: string, scope: {ngModel: string, class: string, type: string}, link: linkFunc}}
 * @constructor
 */

function wizardSteps() {

    var directive = {
        restrict: 'E',
        templateUrl: 'wizard-steps/wizard-steps.html',
        scope: {
            ngModel: '='
        },
        link: linkFunc
    };

    return directive;

    /* private helper methods*/

    function linkFunc($scope) {

        $scope.nextStep = nextStep;


        function nextStep() {



        }


    }
}