Refactored Angular components to standalone modules, enhancing modularity and reducing dependency on `AppModule`. Updated routes to facilitate lazy loading for improved performance and maintainability. Replaced `platformBrowserDynamic` with `bootstrapApplication` for modern bootstrapping.
24 lines
572 B
TypeScript
24 lines
572 B
TypeScript
import {Component} from '@angular/core';
|
|
import {ALTITUDE_VERSION} from '../constant';
|
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
|
import {RouterLink} from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-footer',
|
|
standalone: true,
|
|
imports: [
|
|
CommonModule,
|
|
RouterLink,
|
|
NgOptimizedImage
|
|
],
|
|
templateUrl: './footer.component.html',
|
|
styleUrl: './footer.component.scss'
|
|
})
|
|
export class FooterComponent {
|
|
public getCurrentYear() {
|
|
return new Date().getFullYear();
|
|
}
|
|
|
|
protected readonly ALTITUDE_VERSION = ALTITUDE_VERSION;
|
|
}
|