I am currently utilizing AngularJS to display data from a server. Everything is working smoothly except for one issue - the date value is not being displayed when using input type "date". However, when I switch the input type to "text", it works perfectly fine. Below is the code snippet:
HTML Code:
<body ng-app="myApp" ng-controller="customersCtrl">
<input type="date" ng-model="x.sdate">
</body>
JavaScript Code:
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http,$filter) {
var param = getParameterByName('id');
$http.get("http://socialdeal4u.com/demo/survey/api-delete.php?id="+param)
.success(function (response) { $scope.x = response; });
</script>
I would greatly appreciate any insights on what might be causing this issue. Thank you!