added basic AccountService

This commit is contained in:
2020-07-21 08:45:40 +02:00
parent 886ab08b1f
commit 11af9c5d0d
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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>
}
}