src/app/shared/footer/footer.component.ts
changeDetection | ChangeDetectionStrategy.OnPush |
selector | app-footer |
styleUrls | ./footer.component.scss |
templateUrl | ./footer.component.html |
Properties |
Methods |
constructor()
|
Defined in src/app/shared/footer/footer.component.ts:10
|
ngOnInit |
ngOnInit()
|
Defined in src/app/shared/footer/footer.component.ts:13
|
Returns :
void
|
currentYear |
Default value : new Date().getFullYear()
|
Defined in src/app/shared/footer/footer.component.ts:10
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FooterComponent implements OnInit {
currentYear = new Date().getFullYear();
constructor() {}
ngOnInit(): void {}
}
<!-- Footer Start -->
<footer class="footer">
<a target="blank" title="GPL-3" href="https://www.gnu.org/licenses/gpl-3.0.en.html"> Copyleft </a>
🄯.
{{ currentYear }}
<a target="blank" title="Gitlab@GrassrootsEconomics" href="https://gitlab.com/grassrootseconomics"
><u> Grassroots Economics </u></a
>
</footer>
<!-- end Footer -->
./footer.component.scss