Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="//unpkg.com/angular@1.7.0/angular.js"></script>
 
console.clear();
angular.injector(['ng']).invoke(
  ($rootScope, $timeout, $q) => {
    let dc = 0;
    $rootScope.$watch(() => {
      console.log('digest', dc++);
    });
    let r;
    $q(resolve => {
      r = resolve;
    }).then(() => {
      console.log($rootScope.$$phase);
    });
    $timeout(r, 0, false).then(() => {
      console.log($rootScope.$$phase);
    }).then(r);
  }
);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
thorn0pro
0viewers