I'm having trouble setting a date field in my code. Despite trying to follow the example provided in the AngularJS documentation, nothing is showing up in the "departure" field. Here is what I have:
HTML:
<input type="date" name="departure" ng-model="departure" placeholder="yyyy-MM-dd" required/>
Controller:
$scope.departure = new Date(2015, 9, 22);
For some reason, the date isn't displaying as expected. Any help would be appreciated. I am using Angular 1.3. Thank you.