Skip to content

Instantly share code, notes, and snippets.

@danmdumitru
danmdumitru / gist:060bbea1d6ce527fa567acdf7ee6d0d5
Created May 18, 2017 15:06 — forked from weberste/gist:354a3f0a9ea58e0ea0de
Dates only with Angular-UI Bootstrap datepicker
app.directive('datepickerLocaldate', ['$parse', function ($parse) {
var directive = {
restrict: 'A',
require: ['ngModel'],
link: link
};
return directive;
function link(scope, element, attr, ctrls) {
var ngModelController = ctrls[0];