Created
April 5, 2016 01:58
-
-
Save randerzander/abdaed91001f08efd560c753c3fc0d37 to your computer and use it in GitHub Desktop.
Give Zeppelin interpreter results to arbitrary JS
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
%angular | |
<div id='testDiv'> | |
</div> | |
<script> | |
var el = angular.element($('#testDiv').parent('.ng-scope')); | |
angular.element(el).ready(function() { | |
window.locationWatcher = el.scope().compiledScope.$watch('dummy', function(newValue, oldValue) { | |
$('#testDiv').append(newValue); | |
}); | |
}); | |
</script> |
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
val test = "abc" | |
z.angularBind("dummy", test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment