I am using HTML5 calendar control for date selection and trying to display current system date initially when the user navigates to this page using angularjs.I have tried below code but not getting date in the calendar control.What is the wrong with below code?
<div ng-app ng-controller="Ctrl">
<label>From Date</label>
<input type="date" id=FromDate" name="FromDate" ng-model="FromDate" date-format="yyyy-MM-dd"/>
</div>
function Ctrl($scope)
{
$scope.FromDate = new Date();
}