AngularJS empty fiddle

AngularJS empty fiddle

by Avi Algaly

HTML

<div ng-app="myApp">
    <div ng-controller="Ctrl">
        <input type="date" ng-model="myTime" />
        {{myTime}}
    </div>
</div>

CSS

body {
    margin:20px;
}
ul {
    list-style:none;
}
ul li {
    background-color:#333;
    color:#fff;
    float:left;
    width:20px;
    margin-right:10px;
    text-align:center;
    border-radius:15px;
    text-align:center;
    cursor:pointer;
}
ul li:last-child {
    margin-right:0;
}

JavaScript

var app = angular.module('myApp', []);

app.controller('Ctrl', ['$scope', function ($scope) {
    $scope.myTime = new Date();

}]);