update Angular to v20 #4

Merged
sandre merged 18 commits from feature/update-to-angular-v20 into master 2026-01-22 13:21:54 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit f6c21258fd - Show all commits

View File

@@ -8,7 +8,7 @@ RUN dotnet restore "skydiveLogs-api/skydiveLogs-api.csproj"
RUN dotnet publish "skydiveLogs-api/skydiveLogs-api.csproj" -c Release -o /app/publish RUN dotnet publish "skydiveLogs-api/skydiveLogs-api.csproj" -c Release -o /app/publish
# Use the official node image to build the Angular app # Use the official node image to build the Angular app
FROM node:20-alpine AS build-frontend FROM node:22-alpine AS build-frontend
WORKDIR /app WORKDIR /app
COPY ["Front/skydivelogs-app/package.json", "Front/skydivelogs-app/package-lock.json*", "./"] COPY ["Front/skydivelogs-app/package.json", "Front/skydivelogs-app/package-lock.json*", "./"]
RUN npm install RUN npm install
@@ -27,7 +27,7 @@ COPY nginx.conf /etc/nginx/sites-available/default
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
# Copy frontend dist folder to nginx html directory # Copy frontend dist folder to nginx html directory
COPY --from=build-frontend /app/dist/browser /usr/share/nginx/html COPY --from=build-frontend --exclude=/app/dist/browser/config/* /app/dist/browser /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html/config RUN mkdir -p /usr/share/nginx/html/config
# Copy backend from the correct build stage # Copy backend from the correct build stage

View File

@@ -80,7 +80,8 @@ export class AppComponent implements OnInit {
}); });
} }
ngOnInit() { ngOnInit() {}
ngAfterViewInit() {
this.serviceComm.componentTitle.subscribe( this.serviceComm.componentTitle.subscribe(
(title) => (this.translatedTitle = title), (title) => (this.translatedTitle = title),
); );