UsersService

mail@pastecode.io avatar
unknown
typescript
2 years ago
464 B
8
Indexable
Never
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class UsersService {

  constructor(private http: HttpClient) { }



  findUserByEmail(email: string) {
    let queryParams = new HttpParams().append('email', email);
    return this.http.get(
      'https://test.firebasedatabase.app/users.json',
      {params: queryParams}
    )
  }


}