Skip to content

Instantly share code, notes, and snippets.

@charlypoly
Created October 9, 2014 22:21
Show Gist options
  • Save charlypoly/f930b38bd9f3013abf44 to your computer and use it in GitHub Desktop.
Save charlypoly/f930b38bd9f3013abf44 to your computer and use it in GitHub Desktop.
Angular testing: update directive isolate scope helper
function updateIsolateScope (element, data) {
var directiveScope = element.isolateScope();
directiveScope = angular.extend(directiveScope, data);
element.data('$isolateScope', directiveScope);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment