I just googled this datepicker for use in angular. The problem is that the style/css is missing:
myApp.directive('calendar', function () {
return {
require: 'ngModel',
link: function (scope, el, attr, ngModel) {
$(el).datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function (dateText) {
scope.$apply(function () {
ngModel.$setViewValue(dateText);
});
}
});
}
};
})
Does anyone know how to fix the style? Looks like jquery ui css or something? jsfiddle: http://jsfiddle.net/dingen2010/a6WDH/1/
Check this JsFiddle you just needed to add Ui.css In
external recourse
tab on lef of jsFiddle u had to add external css of Uiadd a reference to jquery-ui.css in your page