2muchcoffeecom / ng2-restangular

Restangular for Angular 2 (RENAMED DUE TO ANGULAR SEMVER)
http://ngx-restangular.com
MIT License
26 stars 7 forks source link

How to directly post without get for example for login #1

Closed moorthi07 closed 7 years ago

moorthi07 commented 7 years ago

How to directly post without get for example for login

Here is my end point user/login that takes input un, pwd and returns user object

let newAccount = { "username": "pvmoorthi_jobs@yahoo.com", "password":"moorthi"};

// POST /User/Login
this.restangular.all('/users/login').post(newAccount);
tairezzzz commented 7 years ago

hey @moorthi07 Can you please create this issue at ngx-restangular. Project was renamed due to Angular SemVer.