tny-http
v1.0.2
Published
http service for light-ng framework, for browsers only
Downloads
3
Readme
Tny-http
http service for Tny framework
How to use
Tny('app')
.include('http')
.run(['$http',function($http) {
$http.send({
url : 'https://reqres.in/api/users',
method : "POST",
data : {
"name": "morpheus",
"job": "leader"
},
async : true,
callback : function(data){
console.log(data);
},
error : function(err) {
console.log(err);
}
});
}])
.build();