Guest User

Untitled

a guest
Dec 28th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2. import { HttpClient } from '@angular/common/http';
  3.  
  4. @Injectable({
  5. providedIn: 'root'
  6. })
  7. export class UserService {
  8.  
  9. constructor(
  10. private http: HttpClient
  11. ) { }
  12.  
  13. getUserByMail(email: string, pass: string){
  14. const body = {
  15. email: email,
  16. pass: pass,
  17. getUser: true
  18. };
  19. return this.http.post('http://ng-everyday/controller/user_control.php', body) ;
  20. }//
  21. }
Add Comment
Please, Sign In to add comment