title: Set default value of HTML5 date input field with angularJS
body: <p>I am hoping to bind the default value I generated in moment to the date and time input field. I tried ng-model and directly binding it to the value attributes. But none of it seems to work. Is there a way to make it work?</p>
  
  <p><strong>Edit:</strong> Also, how to bind the time input field as well?</p>
  
  <pre><code>&lt;body ng-app="myApp"&gt;
  &lt;div ng-controller="MyCtrl"&gt;
      &lt;input type="date" ng-model="date" value="{{date}}"&gt;
          &lt;p&gt;{{date}}&lt;/p&gt;
      &lt;input type="time" ng-model="time" value="{{time}}"&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is a fiddle for it: <a href="http://jsfiddle.net/chrisyeung/bF9Pq/">http://jsfiddle.net/chrisyeung/bF9Pq/</a></p>