All files / app/elements/footer-element footer-element.component.ts

91.3% Statements 21/23
100% Branches 2/2
66.66% Functions 2/3
91.3% Lines 21/23

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 241x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 35x 35x 1x 1x     1x  
import { Component, OnInit } from '@angular/core';
import { environment } from '@environments/environment';
 
@Component({
	selector: 'grt-footer-element',
	templateUrl: './footer-element.component.html',
	styleUrls: ['./footer-element.component.scss'],
	imports: [],
})
export class FooterElementComponent implements OnInit {
	currentYear = 0;
	production = environment.production;
 
	constructor() {}
 
	ngOnInit() {
		this.currentYear = new Date().getFullYear();
	}
 
	redirectToBlog() {
		window.location.href = 'https://www.gorealtravel.com/blog';
	}
}