Convert components to standalone and implement route-based loading

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.
This commit is contained in:
2025-04-08 21:45:44 +02:00
parent 9615139554
commit c2c81de9d0
20 changed files with 226 additions and 61 deletions
+12 -1
View File
@@ -2,9 +2,20 @@ import {Component, OnInit} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {ALTITUDE_VERSION} from '../constant';
import {ScrollService} from '../scroll/scroll.service';
import {CommonModule, NgOptimizedImage} from '@angular/common';
import {HeaderComponent} from '../header/header.component';
import {CopyIpComponent} from '../copy-ip/copy-ip.component';
import {RouterLink} from '@angular/router';
@Component({
standalone: false,
standalone: true,
imports: [
CommonModule,
HeaderComponent,
CopyIpComponent,
RouterLink,
NgOptimizedImage
],
selector: 'app-home',
templateUrl: './home.component.html',
styleUrl: './home.component.scss'