From 976192319079769d15126d457daf35a52128b71a Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 5 Apr 2025 22:31:32 +0200 Subject: [PATCH] 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. --- frontend/src/app/footer/footer.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/footer/footer.component.ts b/frontend/src/app/footer/footer.component.ts index 7da7554..a0906da 100644 --- a/frontend/src/app/footer/footer.component.ts +++ b/frontend/src/app/footer/footer.component.ts @@ -7,5 +7,7 @@ import {Component} from '@angular/core'; styleUrl: './footer.component.scss' }) export class FooterComponent { - + public getCurrentYear() { + return new Date().getFullYear(); + } }