Reputation: 4161
Now in this date-picker
i want today's date as selected by default.
can anyone help me how do set default date?
Thank you.
Upvotes: 3
Views: 11119
Reputation: 4161
In andgular material i have used this for datepicker and my issue of set current date is solved as follow,
Using AngularJs Controller,
<input type="date" list="days" ng-model="transaction.date">
$scope.transaction.date = new Date();
(1) google components
(2) datepicker demo
(3) material demo
Upvotes: 5