JSFiddle - React, Tailwind, and code Playground

by Daniel Lamb

HTML

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.5/angular.min.js"></script>
<div ng-app="myApp">
    <form name="myForm" ng-controller="DateController">Pick a date in 2013:
        <input type="date" name="dob" ng-model="value" placeholder="yyyy-MM-dd" min="2013-01-01" max="2013-12-31" required />
        <input type="submit" />
        <input type="reset" />
    </form>
</div>

JavaScript

angular.module('myApp', []).controller('DateController', ['$scope', function ($scope) {
    $scope.value = new Date(2013, 10, 20);
}]);