Project

General

Profile

1
import { Component, OnInit } from '@angular/core';
2
import { AuthenticationService } from '../../services/authentication.service';
3

    
4
@Component ({
5
  selector: 'app-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
  getIsUserLoggedIn() {
16
    return this.authService.getIsUserLoggedIn();
17
  }
18
}
(2-2/2)