Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 4, 2017 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/ee6d7939731f79864ab4117aa3bc4416 to your computer and use it in GitHub Desktop.
Save uno-de-piera/ee6d7939731f79864ab4117aa3bc4416 to your computer and use it in GitHub Desktop.
import { URLSearchParams } from "@angular/http"
let body = new URLSearchParams();
body.set('username', username);
body.set('password', password);
this.http.post(this.loginUrl, body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment