Skip to content

Instantly share code, notes, and snippets.

@randerzander
Created April 5, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randerzander/abdaed91001f08efd560c753c3fc0d37 to your computer and use it in GitHub Desktop.
Save randerzander/abdaed91001f08efd560c753c3fc0d37 to your computer and use it in GitHub Desktop.
Give Zeppelin interpreter results to arbitrary JS
%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>
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