Add getCurrentYear method to FooterComponent

This method retrieves the current year dynamically. It can be used to ensure the footer displays up-to-date information without manual updates.
This commit is contained in:
Teriuihi 2025-04-05 22:31:32 +02:00
parent 46c755040d
commit 9761923190

View File

@ -7,5 +7,7 @@ import {Component} from '@angular/core';
styleUrl: './footer.component.scss' styleUrl: './footer.component.scss'
}) })
export class FooterComponent { export class FooterComponent {
public getCurrentYear() {
return new Date().getFullYear();
}
} }