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