Skip to content

Instantly share code, notes, and snippets.

@RobinBressan
Last active April 15, 2016 15:14
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinBressan/f808955f37d28b9af2d677150a3398eb to your computer and use it in GitHub Desktop.
Save RobinBressan/f808955f37d28b9af2d677150a3398eb to your computer and use it in GitHub Desktop.
Angular $digest bomb. Like fork bomb but with $digest.
function digestBomb() {
var $rootScope = angular.injector(['ng']).get('$rootScope');
function $digest() {
$rootScope.$$postDigest($digest);
$rootScope.$digest();
}
$digest();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment