Class: $http

mvcomponents/http. $http


new $http()

Executa um ajax request

Examples
$http
     .get("friends/actives")
     .then((res:IFriend[])=>console.log(res));
$http
     .get("friends/actives")
     .params({order:"name"})
     .then((res:IFriend[])=>console.log(res));
$http
     .post("friends")
     .body(newFriend)
     .then((res:IFriend[])=>console.log(res));
$http
     .put("friends")
     .body(newFriend)
     .then((res:IFriend[])=>console.log(res));
$http
     .get("friends/actives")
     .then((res:IFriend[])=>console.log(res),(error:any) => console.log(error));