Created
February 8, 2018 07:41
-
-
Save hiepxanh/6c0ad761ae422ec95beb5cadb7bfd29f to your computer and use it in GitHub Desktop.
get HTML request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getHTML() { | |
return this.http.request('GET','api/account/login',{observe:'response',responseType:'text'}) | |
.map((res:HttpResponse<any>) => { console.log(res.body); return res.body }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment