How do I automatically set today's date as the default in the input box using ng-it?
I am simply looking to set today's date as the default in the input field using ng-it.
Would appreciate it if you could check out my Plunker and provide some assistance, thank you.
My code snippet:
<div ng-app="" ng-init="to='2018-01-24'">
<p>Default date in the input box:</p>
<p>Name: <input type="date" ng-model="to"></p>
<p>You wrote: {{ to }}</p>
</div>
- In the Plunker, we are looking to have the value of the second input field set as today's date...