initiale Entwicklung
This commit is contained in:
@@ -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 })]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user