title: Twitter bootstrap datepicker in Angular js
body: <p>I am building an application with twitter bootstrap,Angular js and Taffy DB.</p>
  
  <p>javascript:</p>
  
  <pre><code>  $(function() {
     $('#datepicker').datepicker();
      });
  
     $scope.submit = function () {
     console.log($scope.eventdate);
     };
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;label for="eventdate"&gt;Date&lt;/label&gt;
      &lt;div class="input-append date" id="datepicker"  data-date-format="dd-mm-yyyy"&gt;
      &lt;input class="span2" size="20" type="text" id="eventdate" ng-model="eventdate"&gt;
      &lt;span class="add-on"&gt;&lt;i class="icon-th"&gt;&lt;/i&gt;&lt;/span&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>But <code>console.log($scope.eventdate);</code> is undefined.</p>
  
  <p>Please advice</p>