Skip to content

Commit

Permalink
refactor(pages): dynamic current year
Browse files Browse the repository at this point in the history
  • Loading branch information
Penkie committed Feb 9, 2024
1 parent f89723e commit 9007497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/pages.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<router-outlet></router-outlet>
</div>
<footer>
© 2023 Oscar Prince — Made with love and some coffee
© {{ currentYear }} Oscar Prince — Made with love and some coffee
</footer>
</div>
1 change: 1 addition & 0 deletions src/app/pages/pages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import { Component } from '@angular/core';
})
export class PagesComponent {

public currentYear = new Date().getFullYear();
}

0 comments on commit 9007497

Please sign in to comment.