title: Angularjs [$rootScope:inprog] inprogress error
body: <p>I am getting angularjs  [$rootScope:inprog] error.</p>
  
  <p><code>Error: [$rootScope:inprog] http://errors.angularjs.org/1.2.7/$rootScope/inprog?p0=%24digest</code>.</p>
  
  <p>this is the function calling</p>
  
  <pre><code> Members.get({}, function (response) { // success
     $scope.family_mem = response.data;    
    }, function (error) { // ajax loading error
  
      Data.errorMsg(); // display error notification
    });
  </code></pre>
  
  <p>in console i am getting results  by php controller function.but not updating <code>$scope.family_mem</code> instead going to error part.
  this is the directive </p>
  
  <pre><code>myApp.directive('mySelect', function() {
    return{
      restrict: 'A',
      link: function(scope, element){
        $(element).select2();
      }
    };
  });
  </code></pre>