以下代码段对我有用:
.config(function ($provide) { $provide.decorator('datepickerPopupDirective', function ($delegate) { var directive = $delegate[0]; var link = directive.link; directive.compile = function () { return function (scope, element, attrs) { link.apply(this, arguments); element.mask("99/99/9999"); }; }; return $delegate; });});它只是用 jquery.maskedinput.js 提供的掩码 修饰datepicker 指令。玩得开心!
更新(2015年5月13日)
一个说明它工作原理的工具:http
://plnkr.co/edit/fTFNu9Mp2kX5X1D6AJOx?p=preview



