all files / js/form/ dateQuestion.directive.js

28.57% Statements 2/7
100% Branches 0/0
0% Functions 0/3
28.57% Lines 2/7
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                                             
/**
 * Created by cklimkowsky on 1/28/15.
 */
angular
    .module('coopEval')
    .directive('ceDateQuestion', dateQuestion);
 
function dateQuestion() {
    return {
        restrict: 'E',
        scope: {
            question: '=',
            form: '=',
            submitted: '='
        },
        link: function (scope, element, attrs, ctrl) {
            scope.open = function ($event) {
                $event.preventDefault();
                $event.stopPropagation();
                scope.opened = true;
            };
        },
        templateUrl: 'partials/form/date-question.html'
    }
}