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);
};
}
Such complex UI components need to be wrapped into a directive to maintain a model data binding. For the jQuery datepicker, you can check this question, or google around "jquery datepicker directive".
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments