initiale Entwicklung

This commit is contained in:
2025-01-03 21:26:45 +01:00
parent d47f6e2284
commit 74dbd9dc5a
25 changed files with 1562 additions and 189 deletions

View File

@@ -1,5 +1,15 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { BlogPostComponent } from './components/blog-post.component';
import { LandingPageComponent } from './components/landing-page.component';
export const routes: Routes = [
{ path: '', component: LandingPageComponent },
{ path: 'blog/:id', component: BlogPostComponent },
{ path: '**', redirectTo: '' } // Fallback-Route
];
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true })]
providers: [provideRouter(routes),provideZoneChangeDetection({ eventCoalescing: true })]
};