18 lines
319 B
TypeScript
18 lines
319 B
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { HttpClient } from '@angular/common/http';
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root'
|
||
|
|
})
|
||
|
|
export class AccountService {
|
||
|
|
|
||
|
|
userName: string = null;
|
||
|
|
|
||
|
|
constructor(private httpClient: HttpClient) { }
|
||
|
|
|
||
|
|
login(username, password) {
|
||
|
|
return this.httpClient.post<User>
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|