1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1× 1× | /** * 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(); } } }; |