| var request = $http({ | |
| method: "post", | |
| url: "process.cfm", | |
| transformRequest: transformRequestAsFormPost, | |
| data: { | |
| id: 4, | |
| name: "Kim", | |
| status: "Best Friend" | |
| } | |
| }); | |
| return new Promise(resolve => { | |
| this.http.post('http://api.local.dev:3000/v1/users', creds, {headers: headers}).subscribe(data => { | |
| if (data.json().success) { | |
| resolve(true); | |
| } | |
| else | |
| resolve(false); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment