Last active
April 15, 2016 15:14
-
-
Save RobinBressan/f808955f37d28b9af2d677150a3398eb to your computer and use it in GitHub Desktop.
Angular $digest bomb. Like fork bomb but with $digest.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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