Bind date input

Description

The following code shows how to bind date input value.

Example


<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head><!-- w w w .  jav a 2  s.  c  om-->
<body>
<div>
   <input type="date" data-ng-model="date" style="width:200px;" />
   <br>
   {{ date }}
</div>
</body>
</html>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities