title: jQuery datepicker not working inside ng-repeat in angularjs?
body: <p>I am using jquery ui date picker in angularjs and it is working fine. But it is not working when datepicker comes inside <code>ng-repeat</code> loop.</p>
  
  <pre><code>&lt;input type="text" class="form-control date_picker" ng-model="date.date" ng-repeat="date in ot.dates"&gt;
  //Directive
  app.directive('otForm', function () {
      return {
          restrict: 'E',
          replace: true,
          templateUrl: 'app/components/ots/form.html',
          link: function ($scope, form) {
              $(".date_picker").datepicker({
                  dateFormat: 'dd-mm-yy',
                  prevText: '&lt;i class="fa fa-chevron-left"&gt;&lt;/i&gt;',
                  nextText: '&lt;i class="fa fa-chevron-right"&gt;&lt;/i&gt;',
                  showButtonPanel: false,
                  changeYear: true,
                  changeMonth: true
              });
          }
      }
  })
  </code></pre>
  
  <p>How can I solve this?</p>