all files / js/form/ datepickerPopup.directive.js

50% Statements 2/4
100% Branches 0/0
0% Functions 0/2
50% Lines 2/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                             
/**
 * Created by cklimkowsky on 2/15/15.
 */
angular
    .module('coopEval')
    .directive('datepickerPopup', datepickerPopup);
 
function datepickerPopup() {
    return {
        restrict: 'EAC',
        require: 'ngModel',
        link: function (scope, element, attr, controller) {
            // Remove the default formatter from the input directive to prevent conflict
            controller.$formatters.shift();
        }
    }
};