Skip to content

Commit bf52925

Browse files
committed
Set copyright year dynamically
1 parent 34be155 commit bf52925

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/core/layout/footer/footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
</a>
1919
</div>
2020
<app-theme-toggle />
21-
<p class="copyright">Copyright © Phenotypic Evolution Group 2024</p>
21+
<p class="copyright">Copyright © Phenotypic Evolution Group {{ currentYear }}</p>
2222
</footer>

src/app/core/layout/footer/footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import { SvgIconComponent } from 'angular-svg-icon';
99
styleUrl: './footer.component.css'
1010
})
1111
export class FooterComponent {
12-
12+
readonly currentYear: number = new Date().getFullYear();
1313
}

0 commit comments

Comments
 (0)