Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- import { HttpClient } from '@angular/common/http';
- @Injectable({
- providedIn: 'root'
- })
- export class UserService {
- constructor(
- private http: HttpClient
- ) { }
- getUserByMail(email: string, pass: string){
- const body = {
- email: email,
- pass: pass,
- getUser: true
- };
- return this.http.post('http://ng-everyday/controller/user_control.php', body) ;
- }//
- }
Add Comment
Please, Sign In to add comment