Project

General

Profile

1 51440 myrto.kouk
import {AuthenticationService} from "../../services/authentication.service";
2
import {Component, OnInit} from "@angular/core";
3
import {Router} from "@angular/router";
4
5
@Component ({
6
  selector: 'landing',
7
  templateUrl: 'landing.component.html'
8
})
9
10
export class LandingComponent implements OnInit {
11
12
  constructor(private authService: AuthenticationService, private router: Router) { }
13
14
  ngOnInit() {
15
  }
16
17
18
  login() {
19
    this.authService.loginWithState();
20
  }
21
22 51584 myrto.kouk
  onStartHerePush() {
23
    this.router.navigate(['/dashboard']);
24 51440 myrto.kouk
  }
25
26
  getIsUserLoggedIn() {
27
    return this.authService.getIsUserLoggedIn();
28
  }
29
}