🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ng-request

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-request

Wrap Angular's $http service up like request/request

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Angular $http as request

Angular service that wraps $http to look like request. Covers basic GET and POST requests but not all request's options are supported.

Adapted from: https://github.com/iriscouch/browser-request

Usage

Add index.js to your project.

angular.module('myModule').controller('myController', function(ngRequest) {

  ngRequest.get('http://example.com', function(err, response, body) {
    console.log(body);
  });
});

Keywords

angular

FAQs

Package last updated on 04 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts