标签: angularjs validation input
如何在模型中使用 $scope.getData = (something, protection) => { ctrl.getSomecData(protection, protection); ctrl.saveRecentSearch(something); }; 来验证输入[时间]才能正常工作?仅当我使用诸如new Date()之类的特定构造函数时,它才起作用。
$scope.getData = (something, protection) => { ctrl.getSomecData(protection, protection); ctrl.saveRecentSearch(something); };
new Date()
http://plnkr.co/edit/4K3s7rIetR1y2ThQSwYp?p=preview