Skip to content

Networking

Dominic Valenciana edited this page Nov 18, 2016 · 1 revision

$http is used for ajax calls.

$http({ 
     method: string, 
     url: string, 
     data: string|object, 
     dataType: string, 
     success: function(response: object?), 
     error: function(response: object?) 
});

All ajax calls are done asynchronously and all functions are treated like callbacks.

$http arguments

###method

Argument used to define type of network request to be made.

Acceptable Input: GET, PUT, POST, DELETE and JSONP.

Clone this wiki locally