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 | 1× 1× | /** * 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' } } |