JSFiddle - React, Tailwind, and code Playground

by Pablo Leone

HTML

<div ng-app>
    <div ng-controller="ctrl">
        <input type="date" ng-model="date" />
    </div>
</div>

JavaScript

function ctrl($scope, $filter) {
    $scope.date = $filter("date")(Date.now(), 'yyyy-MM-dd');
}