title: ng-repeat's element not updated on array modification
body: <p>When I trying to update my array on <strong>ng-click</strong> in order to update my ng-repeat's directive items:</p>
  
  <pre><code>&lt;li ng-repeat="itemL1 in mainMenuL1Arr"
      ng-click="selectL2menu(itemL1.name)"&gt;
    &lt;i ng-class="getClass(itemL1.icon)"&gt;&lt;/i&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><strong>selectL2menu()</strong> defined on controller as:</p>
  
  <pre><code>$scope.selectL2menu = function selectL2menu(itemL1name){
          $scope.$apply(function () {
              $scope.mainMenuL2CurArr = $scope.mainMenuL2Obj[itemL1name];
          });
  }
  </code></pre>
  
  <p>Right after click on 1st level menu item it should reveal 2nd level menu block with correspondent elements (by updating the array with correspondent values, see below).
  Here is 2nd level menu block I need to update on click:</p>
  
  <pre><code>&lt;li ng-repeat="itemL2 in mainMenuL2CurArr"
      class="subMenuElemBlock"
      ng-class="{active: itemL2.selected}"&gt;
          &lt;a href="#"&gt;
               &lt;i ng-class="getClass(itemL2.icon)"&gt;&lt;/i&gt;
               &lt;span&gt;{{itemL2.name}}&lt;/span&gt;
          &lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>While click event triggered - my array successfully updated. Nevertheless ng-repeat directive not updated my 2nd level menu (base on updating array). I've tried to with (and without) using $apply function - same result (though using $apply error message appearing <strong>Error: $apply already in progress</strong>).</p>
  
  <p><strong>So, why my array being successfully updated on click not revealed on ng-repeat directive menu element?</strong></p>
  
  <p>I've read related posts (<a href="https://stackoverflow.com/questions/16039076/angular-js-view-doesnt-update-when-nested-scope-array-is-updated">link</a>, <a href="http://jimhoskins.com/2012/12/17/angularjs-and-apply.html" rel="nofollow noreferrer">link</a>, <a href="https://stackoverflow.com/questions/15475601/ng-repeat-list-in-angular-is-not-updated-when-a-model-element-is-spliced-from-th?rq=1">link</a>) but did't find any working decision.</p>