title: How to restart ng-repeat after data has been changed
body: <p>My controller is </p>
  
  <pre><code>function calendarEventsController($scope) {
      var angUserEvents = [];
  
       // get data to array from json
  
      $scope.returnUserEvents = function(userDate){
       for (var i = 0; i &lt;= angUserEvents.length-1; i++){
          if (angUserEvents[i].start == $.datepicker.formatDate('yy-mm-dd', userDate))
          {
              var dateToShow = angUserEvents[i];
              $scope.userEvents = dateToShow;
              //return;
  
          }   
       };
  }; 
  
      $scope.userEvents = angUserEvents;
  };
  </code></pre>
  
  <p>OK, it works good. Checking the scope of this controller, I see the list of objects <code>userEvents</code>, which is rendered by ng-repeat successfully.</p>
  
  <pre><code>&lt;ul&gt;
               &lt;li ng-repeat="userEvent in userEvents"&gt;
                      {{userEvent}} 
  
               &lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>After this I manipulate this list in controller by <code>$scope.returnUserEvents</code>, selecting the one of object in it. To be sure that data is OK, I'm checking the scope of controller again, and I see that length <code>userEvents</code>has been changed - that's what I need. </p>
  
  <p>After this, I assume that ng-repeat must be rerender (becouse of <code>$scope.userEvents</code> has been changed), however it is not so.</p>