Initial implementation of login and registration with fake backend for future testing
Also introduced flex-layout
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { SocketService } from './socket/socket.service';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { AccountService } from './account/account.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -10,22 +10,14 @@ import { HttpClient } from '@angular/common/http';
|
||||
export class AppComponent {
|
||||
title = 'rona-frontend';
|
||||
|
||||
onClickSocket() {
|
||||
this.socketService.send('test', {'user': 'USERNAME', 'payload': 'PAYLOAD TEST'})
|
||||
}
|
||||
|
||||
onClickApi() {
|
||||
this.httpService.get('http://localhost:5005/').subscribe(response => {
|
||||
console.log('REST API call returned: ', response);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param accountService
|
||||
* @param socketService
|
||||
* @param httpService
|
||||
*/
|
||||
constructor(private socketService: SocketService,
|
||||
private httpService: HttpClient) { }
|
||||
constructor(private accountService: AccountService,
|
||||
private socketService: SocketService,
|
||||
) { }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user