Skip to content

Instantly share code, notes, and snippets.

@ProZachJ
Last active December 18, 2015 16:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ProZachJ/5809186 to your computer and use it in GitHub Desktop.
Save ProZachJ/5809186 to your computer and use it in GitHub Desktop.
$rootScope.$broadcast( 'Proxy.response', response );
$scope.$on( 'Proxy.request', function( event, request ) {
$scope.data = request.split("\n");
//registers the change in data if needed
if(!$scope.$$phase) {
$scope.$apply();
}
});
@ProZachJ
Copy link
Author

request and response = data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment