app.directive("datepicker", function () {
function link(scope, element, attrs) {
element.datepicker({
dateFormat: "dd/mm/yy"
});
}
return {
require: 'ngModel',
link: link
};
});
<input type = "text" datepicker class="form-control" ng-disabled = "x.status_flag == 1" ng-model = "x.closure_date" >
Здесь выдается ошибка, что указатель даты не является функцией.