Skip to content

Instantly share code, notes, and snippets.

@yogeshp
yogeshp / gist:20a597fe663b7170721e308193d92152
Created April 14, 2017 01:24 — 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];