Skip to content

Instantly share code, notes, and snippets.

View anilsingh581's full-sized avatar

Anil Singh anilsingh581

View GitHub Profile
angular.module('bDatepicker', []).
directive('bDatepicker', function(){
return {
require: '?ngModel',
restrict: 'A',
link: function($scope, element, attrs, controller) {
var updateModel;
updateModel = function(ev) {
element.datepicker('hide');
element.blur();