Created
October 9, 2014 22:21
-
-
Save charlypoly/f930b38bd9f3013abf44 to your computer and use it in GitHub Desktop.
Angular testing: update directive isolate scope helper
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 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