showing results for - "angular current year"
Theo
01 Mar 2019
1// In component file
2export class SomeComponent {
3  currentYear: number = new Date().getFullYear();
4}
5
6// In HTML file
7<div> {{ currentYear }}. All rights reserved </div>
8