Kindly help me to solve this issue. I am using jquery datepicker with AngularJS. I am trying to get the selected date and pass it with a function as parameter. For this I am using the following code.
Html:
<input type="text" "ng-model="gettingStartDate" ng-change="newTest(gettingStartDate)" />
Date Picker:
$( "#date1" ).datepicker();
AngularJS:
function getOrg($scope, $http) {
$scope.newTest = function(start_date){
alert(start_date);
};
}
$scope.$apply
: docs.angularjs.org/api/ng/type/$rootScope.Scope – m.e.conroy Mar 17 '14 at 13:16