Skip to content

Instantly share code, notes, and snippets.

@hiepxanh
Created February 8, 2018 07:41
Embed
What would you like to do?
get HTML request
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