Skip to content

Instantly share code, notes, and snippets.

@chrishokamp
Created December 11, 2013 00:24
Show Gist options
  • Select an option

  • Save chrishokamp/7902972 to your computer and use it in GitHub Desktop.

Select an option

Save chrishokamp/7902972 to your computer and use it in GitHub Desktop.

Revisions

  1. chrishokamp created this gist Dec 11, 2013.
    6 changes: 6 additions & 0 deletions injecting $http in the console
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var $inj = angular.injector(['App']);
    var serv = $inj.get('$http');

    var x = serv({method: 'POST', url: 'http://127.0.0.1:5000'}).success(function(data){console.log(data)}).error(function(data, status, header){ console.log(data); console.log(status); console.log(header);});

    console.log(x);