title: How to access $dirty, $dirty value of bootstrap-ui datepicker?
body: <p>How to access $valid, $dirty value of <a href="http://angular-ui.github.io/bootstrap/#/datepicker" rel="nofollow">bootstrap-ui datepicker</a>?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html ng-app="plunker"&gt;
    &lt;head&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.js"&gt;&lt;/script&gt;
      &lt;script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.6.0.js"&gt;&lt;/script&gt;
      &lt;script src="example.js"&gt;&lt;/script&gt;
      &lt;link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"&gt;
    &lt;/head&gt;
    &lt;body&gt;
  
  &lt;div ng-controller="DatepickerDemoCtrl"&gt;
      &lt;pre&gt;Selected date is: &lt;em&gt;{{dt | date:'fullDate' }}&lt;/em&gt;&lt;/pre&gt;
      &lt;pre&gt;Valid is: &lt;em&gt;|{{dt.$valid}}|&lt;/em&gt;&lt;/pre&gt;
      &lt;pre&gt;Dirty is is: &lt;em&gt;|{{dt.$valid}}|&lt;/em&gt;&lt;/pre&gt;
      &lt;div class="form-horizontal"&gt;
          &lt;input type="text" datepicker-popup="dd-MMMM-yyyy" ng-model="dt" is-open="opened" min="minDate" max="'2015-06-22'" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" /&gt;
          &lt;button class="btn" ng-click="open()"&gt;&lt;i class="icon-calendar"&gt;&lt;/i&gt;&lt;/button&gt;
      &lt;/div&gt;
  
      &lt;hr /&gt;
  &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="http://plnkr.co/edit/eQPxNetSVITfCW53Q1G7?p=preview" rel="nofollow">planker</a></p>