chore(deps): upgrade Angular 18 → 19

- ng update @angular/core@19 @angular/cli@19 @angular/material@19 @angular-eslint/schematics@19
- Migration: remove standalone:true (now default in v19) from 60 components
- Migration: zone.js 0.14 → 0.15
- Fix pre-existing build budget error: raise initial bundle limit to 5mb (app ships large static JSON assets)
This commit is contained in:
2026-04-26 06:25:02 +02:00
parent b8eb8a9393
commit 5400294d45
65 changed files with 5875 additions and 4710 deletions
+9 -9
View File
@@ -3,7 +3,7 @@ import { MAT_DATE_LOCALE, MAT_DATE_FORMATS, provideNativeDateAdapter } from '@an
import { Title } from '@angular/platform-browser';
import { FullComponent } from '@components/shared/layout';
import { UserService } from "@services";
import { UserService } from '@services';
export const MY_FORMATS = {
parse: {
@@ -19,23 +19,23 @@ export const MY_FORMATS = {
@Component({
selector: 'app-root',
standalone: true,
imports: [
FullComponent
],
imports: [FullComponent],
providers: [
{ provide: MAT_DATE_LOCALE, useValue: 'fr-FR' },
{ provide: MAT_DATE_FORMATS, useValue: MY_FORMATS },
provideNativeDateAdapter(MY_FORMATS)
provideNativeDateAdapter(MY_FORMATS),
],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
styleUrl: './app.component.scss',
})
export class AppComponent implements OnInit, AfterContentInit {
public title = 'Ad Astra';
public appClass = 'grayscale';
constructor(private userService: UserService, private titleService: Title) { }
constructor(
private userService: UserService,
private titleService: Title,
) {}
ngOnInit() {
this.userService.populate();
@@ -45,4 +45,4 @@ export class AppComponent implements OnInit, AfterContentInit {
ngAfterContentInit() {
this.appClass = 'colored';
}
}
}