All files / src/app/layout/home home.component.ts

100% Statements 19/19
100% Branches 4/4
100% Functions 5/5
100% Lines 14/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 321x 1x 1x     1x 1x 1x 1x               3x   2x 2x 2x   2x         1x 1x      
import { Component, OnInit } from '@angular/core';
import { RouterLink } from '@angular/router';
import { SessionService } from '@core/services/session.service';
import { SessionInformation } from '@core/model/session-information.interface';
import { BehaviorSubject } from 'rxjs';
import { AsyncPipe } from '@angular/common';
import { MatCardModule } from '@angular/material/card';
import { MatButton, MatIconButton } from '@angular/material/button';
import { MatIcon } from '@angular/material/icon';
 
@Component({
  selector: 'app-home',
  imports: [RouterLink, AsyncPipe, MatCardModule, MatButton, MatIcon],
  templateUrl: './home.component.html',
  styleUrl: './home.component.scss'
})
export class HomeComponent implements OnInit {
 
  loggedIn: boolean = false;
  sessionInformation$: BehaviorSubject<SessionInformation|null>|null = null;
  email: String = 'info@myjobs.wilzwert.com';
 
  constructor(private sessionService: SessionService){
    
  }
 
  ngOnInit(): void {
    this.loggedIn = this.sessionService.isLogged();
    this.sessionInformation$ = this.sessionService.$getSessionInformation();
  }
}