Demo of Angular unit testing memory leaks using jasmine's 'this'-keyword ##set up npm install bower install ##run tests ./node_modules/karma/bin/karma start karma.conf.js ##take a look at heavyLoad-directive.using-this.spec.js