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:
auto committed 2025-04-05 22:31:32 +02:00
1 parent 46c755040d
commit 9761923190
1 file changed
+3 -1
+3 -1
View File
@@ -7,5 +7,7 @@ import {Component} from '@angular/core';
styleUrl: './footer.component.scss'
})
export class FooterComponent {
public getCurrentYear() {
return new Date().getFullYear();
}
}