Skip to content

Instantly share code, notes, and snippets.

View labrego2407's full-sized avatar

Larz labrego2407

View GitHub Profile
@labrego2407
labrego2407 / gist:f98657ca1dedc6662de1afef18d27c08
Created June 6, 2017 21:51 — 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];