This might be a stupid and an easy problem but I can't seem to have a solution to this. I'm trying to set a field of type Date but nothing show up. Here is my code:
In Html:
<input type="date" name="departure" ng-model="departure" placeholder="yyyy-MM-dd" required/>
In the Controller I do something like this:
$scope.departure = new Date(2015, 9, 22);
NOTHING got display in the field "departure". I dont understand why. This seems to be so easy. I follow this example: https://docs.angularjs.org/api/ng/input/input%5Bdate%5D
Please help. I'm using Angular 1.3 Thanks