1
|
import { Component, OnInit } from '@angular/core';
|
2
|
import { AuthenticationService } from '../../services/authentication.service';
|
3
|
|
4
|
|
5
|
@Component ({
|
6
|
selector: 'app-home',
|
7
|
templateUrl: 'home.component.html'
|
8
|
})
|
9
|
|
10
|
export class HomeComponent implements OnInit {
|
11
|
|
12
|
constructor(private authService: AuthenticationService) { }
|
13
|
|
14
|
ngOnInit() {}
|
15
|
|
16
|
login() {
|
17
|
this.authService.loginWithState();
|
18
|
}
|
19
|
|
20
|
getIsUserLoggedIn() {
|
21
|
return this.authService.getIsUserLoggedIn();
|
22
|
}
|
23
|
}
|