<!DOCTYPE html>
<html ng-app="myApp">

<head lang="pl">
  <meta charset="utf-8">
  <title>Kontrolka datepicker we frameworku AngularJS</title>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.min.js"></script>

  <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
  <script>
    document.write('<base href="' + document.location + '" />');
  </script>
  <script src="datepicker.js"></script>
  <script src="app.js"></script>
</head>

<body ng-controller="MainCtrl">
<input id="dateField" datepicker ng-model="$parent.currentDate" select="updateMyText(date)">
<br/>
{{myText}} - {{currentDate}}
</body>
</html>
